{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/philidor-io/json-schema/philidor-io-asset-info-facets-response-schema.json",
  "title": "AssetInfoFacetsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/philidor-io-reference-api-openapi.yml#/components/schemas/AssetInfoFacetsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "chains": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "chain_id": {
                "type": "number"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "chain_id",
              "count"
            ]
          }
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "category": {
                "$ref": "#/$defs/AssetCategory"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "category",
              "count"
            ]
          }
        },
        "instrument_types": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "instrument_type": {
                "$ref": "#/$defs/InstrumentType"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "instrument_type",
              "count"
            ]
          }
        },
        "review_statuses": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "review_status": {
                "type": "string",
                "enum": [
                  "reviewed",
                  "provisional",
                  "unreviewed"
                ]
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "review_status",
              "count"
            ]
          }
        },
        "risk_tiers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "risk_tier": {
                "type": "string"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "risk_tier",
              "count"
            ]
          }
        },
        "regulatory_wrappers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "regulatory_wrapper": {
                "type": "string"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "regulatory_wrapper",
              "count"
            ]
          }
        },
        "kyc_gates": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kyc_gate": {
                "type": "string"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "kyc_gate",
              "count"
            ]
          }
        },
        "jurisdictions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "jurisdiction": {
                "type": "string"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "jurisdiction",
              "count"
            ]
          }
        },
        "custodians": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "custodian": {
                "type": "string"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "custodian",
              "count"
            ]
          }
        },
        "auditors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "auditor": {
                "type": "string"
              },
              "count": {
                "type": "number"
              }
            },
            "required": [
              "auditor",
              "count"
            ]
          }
        }
      },
      "required": [
        "chains",
        "categories",
        "instrument_types",
        "review_statuses",
        "risk_tiers",
        "regulatory_wrappers",
        "kyc_gates",
        "jurisdictions",
        "custodians",
        "auditors"
      ]
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "AssetCategory": {
      "type": "string",
      "enum": [
        "native",
        "fiat_backed_stablecoin",
        "cdp_stablecoin",
        "synthetic_stablecoin",
        "lst",
        "lrt",
        "wrapped_btc",
        "governance_token",
        "defi_derivative",
        "tokenized_treasury",
        "t_bill_backed_stable",
        "rwa_credit",
        "commodity_backed",
        "tokenized_equity",
        "wrapped_crypto",
        "unreviewed"
      ]
    },
    "InstrumentType": {
      "type": "string",
      "enum": [
        "base_asset",
        "vault_share",
        "lending_position",
        "principal_token",
        "liquidity_pool_token",
        "yield_bearing_wrapper",
        "unknown"
      ]
    }
  }
}