{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/philidor-io/json-schema/philidor-io-protocol-detail-response-schema.json",
  "title": "ProtocolDetailResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/philidor-io-protocols-api-openapi.yml#/components/schemas/ProtocolDetailResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "protocol": {
          "$ref": "#/$defs/ProtocolDetail"
        },
        "vaults": {
          "type": "array",
          "items": {}
        },
        "versions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProtocolVersion"
          }
        },
        "incidents": {
          "type": "array",
          "items": {}
        }
      },
      "required": [
        "protocol",
        "vaults",
        "versions",
        "incidents"
      ]
    }
  },
  "required": [
    "data"
  ],
  "$defs": {
    "ProtocolDetail": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "logo_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "website_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": "string"
        },
        "mainnet_launch_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "total_audit_count": {
          "type": [
            "number",
            "null"
          ]
        },
        "primary_auditors": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "security_contact": {
          "type": [
            "string",
            "null"
          ]
        },
        "bug_bounty_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "security_page_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "tvl_total": {
          "type": "number"
        },
        "tvl_semantics": {
          "type": "string",
          "enum": [
            "overlapping_position_value"
          ],
          "description": "Gross value of indexed PT and LP positions. PT supply includes tokens held in LP reserves, so these values overlap and are not unique capital."
        },
        "vault_count": {
          "type": "number"
        }
      },
      "required": [
        "id",
        "name",
        "logo_url",
        "website_url",
        "created_at",
        "mainnet_launch_date",
        "total_audit_count",
        "primary_auditors",
        "security_contact",
        "bug_bounty_url",
        "security_page_url",
        "description",
        "tvl_total",
        "vault_count"
      ]
    },
    "ProtocolVersion": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string"
        },
        "display_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "launch_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "auditors": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "audit_report_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "security_page_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "vault_count": {
          "type": "number"
        },
        "tvl": {
          "type": "number"
        },
        "tvl_semantics": {
          "type": "string",
          "enum": [
            "overlapping_position_value"
          ],
          "description": "Gross value of indexed PT and LP positions. PT supply includes tokens held in LP reserves, so these values overlap and are not unique capital."
        }
      },
      "required": [
        "version",
        "display_name",
        "launch_date",
        "auditors",
        "audit_report_url",
        "security_page_url",
        "description",
        "vault_count",
        "tvl"
      ]
    }
  }
}