{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/philidor-io/json-schema/philidor-io-structured-refusal-schema.json",
  "title": "StructuredRefusal",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/philidor-io-access-api-openapi.yml#/components/schemas/StructuredRefusal",
  "type": "object",
  "properties": {
    "restricted_fields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Withheld names. A family gate lists the family."
    },
    "family": {
      "type": "string"
    },
    "required_plan": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "Free",
        "Analyst",
        "Pro",
        "Data",
        "Decisioning",
        "Embedded",
        null
      ],
      "description": "Lowest plan that includes the family. Null when no plan includes it yet."
    },
    "upgrade_url": {
      "type": "string",
      "enum": [
        "https://philidor.io/pricing"
      ]
    },
    "x402_price": {
      "type": "null",
      "description": "USD price for one x402 call. Null until pay-per-request is live."
    }
  },
  "required": [
    "restricted_fields",
    "family",
    "required_plan",
    "upgrade_url",
    "x402_price"
  ]
}