{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/philidor-io/json-schema/philidor-io-vault-holder-concentration-response-schema.json",
  "title": "VaultHolderConcentrationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/philidor-io-vaults-api-openapi.yml#/components/schemas/VaultHolderConcentrationResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "available",
            "unavailable"
          ],
          "description": "`available` when the snapshot worker has indexed this vault share token; `unavailable` when the vault exists but has no holder snapshot yet."
        },
        "vault_id": {
          "type": "string"
        },
        "chain_id": {
          "type": "integer"
        },
        "token_address": {
          "type": "string",
          "description": "Lowercased vault share-token address used for holder indexing."
        },
        "total_supply_raw": {
          "type": [
            "string",
            "null"
          ],
          "description": "Raw ERC-20 totalSupply integer at the snapshot block, or null if unreadable."
        },
        "holder_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Number of nonzero holder balances tracked in the snapshot."
        },
        "external_holder_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Number of tracked nonzero holders excluding protocol-owned infrastructure."
        },
        "top1_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Largest holder share of supply, as a 0..1 fraction."
        },
        "top5_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Top five holders share of supply, as a 0..1 fraction."
        },
        "top10_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Top ten holders share of supply, as a 0..1 fraction."
        },
        "hhi": {
          "type": [
            "number",
            "null"
          ],
          "description": "Holder Herfindahl-Hirschman index over tracked nonzero balances."
        },
        "external_top1_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Largest external holder share of external supply, excluding protocol-owned infrastructure."
        },
        "external_top5_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Top five external holders share of external supply, excluding protocol-owned infrastructure."
        },
        "external_top10_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Top ten external holders share of external supply, excluding protocol-owned infrastructure."
        },
        "external_hhi": {
          "type": [
            "number",
            "null"
          ],
          "description": "External holder Herfindahl-Hirschman index excluding protocol-owned infrastructure."
        },
        "protocol_managed_pct": {
          "type": [
            "number",
            "null"
          ],
          "description": "Share of total supply held by protocol-owned infrastructure addresses."
        },
        "top_holders": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "balance_raw": {
                "type": "string"
              },
              "pct": {
                "type": "number",
                "description": "Holder share of supply, as a 0..1 fraction."
              },
              "label": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "category": {
                "type": "string",
                "enum": [
                  "infrastructure",
                  "wrapper",
                  "contract",
                  "eoa",
                  "entity"
                ]
              }
            },
            "required": [
              "address",
              "balance_raw",
              "pct"
            ]
          }
        },
        "indexed_to_block": {
          "type": [
            "integer",
            "null"
          ]
        },
        "backfill_complete": {
          "type": "boolean"
        },
        "coverage_status": {
          "type": "string",
          "enum": [
            "complete",
            "indexing"
          ],
          "description": "`complete` when vault_holder_index_state.backfill_complete is true. `indexing` means holder backfill is incomplete; concentration and top-holder fields are provisional and must not be shown as final to clients."
        },
        "computed_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "vault_id",
        "chain_id",
        "token_address",
        "total_supply_raw",
        "holder_count",
        "external_holder_count",
        "top1_pct",
        "top5_pct",
        "top10_pct",
        "hhi",
        "external_top1_pct",
        "external_top5_pct",
        "external_top10_pct",
        "external_hhi",
        "protocol_managed_pct",
        "top_holders",
        "indexed_to_block",
        "backfill_complete",
        "coverage_status",
        "computed_at"
      ]
    }
  },
  "required": [
    "data"
  ]
}