{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptodataapi-com/json-schema/cryptodataapi-com-policy-regime-response-schema.json",
  "title": "PolicyRegimeResponse",
  "description": "Upcoming rate catalysts + market-wide policy risk — the main payload.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cryptodataapi-com-geopolitical-policy-shock-regime-api-openapi.yml#/components/schemas/PolicyRegimeResponse",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/PolicyEventModel"
      },
      "type": "array",
      "title": "Items"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    },
    "window_days": {
      "type": "integer",
      "title": "Window Days"
    },
    "policy_risk_score": {
      "type": "number",
      "title": "Policy Risk Score"
    },
    "band": {
      "type": "string",
      "enum": [
        "dormant",
        "quiet",
        "elevated",
        "heavy",
        "critical"
      ],
      "title": "Band"
    },
    "policy_tilt": {
      "type": "number",
      "title": "Policy Tilt",
      "description": "-1 restrictive/risk-off … +1 pro-crypto/risk-on"
    },
    "tilt_label": {
      "type": "string",
      "enum": [
        "pro_crypto",
        "restrictive",
        "neutral"
      ],
      "title": "Tilt Label"
    },
    "timestamp": {
      "type": "string",
      "title": "Timestamp"
    }
  },
  "type": "object",
  "required": [
    "items",
    "count",
    "window_days",
    "policy_risk_score",
    "band",
    "policy_tilt",
    "tilt_label",
    "timestamp"
  ],
  "$defs": {
    "PolicyEventModel": {
      "properties": {
        "event_type": {
          "type": "string",
          "title": "Event Type"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "date": {
          "type": "string",
          "title": "Date"
        },
        "days_until": {
          "type": "integer",
          "title": "Days Until"
        },
        "macro_class": {
          "title": "Macro Class",
          "type": [
            "string",
            "null"
          ]
        },
        "bias": {
          "type": "string",
          "title": "Bias"
        },
        "magnitude": {
          "title": "Magnitude",
          "type": [
            "number",
            "null"
          ]
        },
        "source": {
          "type": "string",
          "title": "Source",
          "default": ""
        }
      },
      "type": "object",
      "required": [
        "event_type",
        "title",
        "date",
        "days_until",
        "bias"
      ],
      "title": "PolicyEventModel"
    }
  }
}