{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/satoshidata-ai/json-schema/satoshidata-ai-risk-exposure-oracle-response-schema.json",
  "title": "RiskExposureOracleResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/satoshidata-ai-risk-api-openapi.yml#/components/schemas/RiskExposureOracleResponse",
  "properties": {
    "kind": {
      "type": "string",
      "const": "risk_exposure",
      "title": "Kind",
      "default": "risk_exposure"
    },
    "address": {
      "type": "string",
      "title": "Address"
    },
    "generated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Generated At"
    },
    "exposure_score": {
      "type": "integer",
      "maximum": 100.0,
      "minimum": 0.0,
      "title": "Exposure Score"
    },
    "band": {
      "type": "string",
      "enum": [
        "high exposure",
        "some exposure",
        "no known exposure",
        "indeterminate"
      ],
      "title": "Band"
    },
    "summary": {
      "type": "string",
      "title": "Summary"
    },
    "top_exposures": {
      "items": {
        "$ref": "#/$defs/RiskExposureOracleTopExposure"
      },
      "type": "array",
      "title": "Top Exposures"
    },
    "scope": {
      "$ref": "#/$defs/RiskExposureOracleScope"
    },
    "confidence": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Confidence"
    },
    "coverage_note": {
      "type": "string",
      "title": "Coverage Note"
    },
    "disclaimer": {
      "type": "string",
      "title": "Disclaimer"
    },
    "terms_url": {
      "type": "string",
      "title": "Terms Url"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    },
    "access": {
      "anyOf": [
        {
          "$ref": "#/$defs/PublicAccessProjection"
        },
        {
          "type": "null"
        }
      ]
    },
    "_meta": {
      "$ref": "#/$defs/ResponseMeta"
    },
    "beta": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Beta"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "address",
    "exposure_score",
    "band",
    "summary",
    "scope",
    "coverage_note",
    "disclaimer",
    "terms_url",
    "_meta"
  ],
  "$defs": {
    "PublicAccessProjection": {
      "additionalProperties": false,
      "properties": {
        "tier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Tier"
        },
        "auth_mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Auth Mode"
        },
        "auth_header": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Auth Header"
        },
        "authorization_scheme": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Authorization Scheme"
        },
        "label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Label"
        }
      },
      "title": "PublicAccessProjection",
      "type": "object"
    },
    "ResponseMeta": {
      "additionalProperties": false,
      "properties": {
        "endpoint": {
          "title": "Endpoint",
          "type": "string"
        },
        "freshness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Freshness"
        },
        "freshness_semantics": {
          "anyOf": [
            {
              "enum": [
                "internal_refresh",
                "source_poll",
                "claim_made"
              ],
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Freshness Semantics"
        },
        "source": {
          "title": "Source",
          "type": "string"
        },
        "price_sats": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Price Sats"
        },
        "price_usd": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Price Usd"
        },
        "docs": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Docs"
        },
        "warnings": {
          "items": {
            "$ref": "#/$defs/ResponseWarning"
          },
          "title": "Warnings",
          "type": "array"
        },
        "pagination": {
          "anyOf": [
            {
              "$ref": "#/$defs/ResponsePagination"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "view": {
          "anyOf": [
            {
              "const": "compact",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "View"
        },
        "bitcoin_backend": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Bitcoin Backend"
        },
        "beta": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Beta"
        },
        "cache_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cache Seconds"
        },
        "cache_ttl_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cache Ttl Seconds"
        },
        "cache_status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cache Status"
        },
        "cache_age_seconds": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cache Age Seconds"
        },
        "cache_cached_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cache Cached At"
        },
        "cached": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cached"
        },
        "cache_policy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Cache Policy"
        },
        "compute_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Compute Ms"
        },
        "warning": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Warning"
        },
        "refresh_warning": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Refresh Warning"
        },
        "last_refresh_started_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Refresh Started At"
        },
        "last_refresh_completed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Refresh Completed At"
        },
        "last_refresh_status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Refresh Status"
        },
        "last_refresh_error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Refresh Error"
        },
        "last_refresh_duration_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Refresh Duration Ms"
        },
        "feature_flag": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Feature Flag"
        },
        "rollout_state": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Rollout State"
        },
        "schema_version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Schema Version"
        },
        "methodology_version": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Methodology Version"
        },
        "materialized_source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Materialized Source"
        },
        "max_hops": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Max Hops"
        },
        "retention": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Retention"
        },
        "not_compliance_advice": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Not Compliance Advice"
        },
        "future_native_price_mode": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Future Native Price Mode"
        },
        "future_native_price_note": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Future Native Price Note"
        },
        "future_native_quote_endpoint": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Future Native Quote Endpoint"
        },
        "overview_activity_cache": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Overview Activity Cache"
        },
        "attribution_confidence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Attribution Confidence"
        },
        "generated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Generated At"
        },
        "last_computed": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Computed"
        },
        "snapshot_generated_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Snapshot Generated At"
        },
        "snapshot_age_seconds": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Snapshot Age Seconds"
        },
        "snapshot_stale_after_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Snapshot Stale After Seconds"
        },
        "snapshot_status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Snapshot Status"
        },
        "history_window_basis": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "History Window Basis"
        },
        "total_blocks_last_24h": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Total Blocks Last 24H"
        },
        "field_semantics": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Field Semantics"
        },
        "semantic_completeness": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Semantic Completeness"
        }
      },
      "required": [
        "endpoint",
        "source"
      ],
      "title": "ResponseMeta",
      "type": "object"
    },
    "ResponsePagination": {
      "additionalProperties": false,
      "properties": {
        "offset": {
          "title": "Offset",
          "type": "integer"
        },
        "limit": {
          "title": "Limit",
          "type": "integer"
        },
        "total_alerts": {
          "title": "Total Alerts",
          "type": "integer"
        },
        "next_offset": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Next Offset"
        },
        "has_more": {
          "title": "Has More",
          "type": "boolean"
        }
      },
      "required": [
        "offset",
        "limit",
        "total_alerts",
        "next_offset",
        "has_more"
      ],
      "title": "ResponsePagination",
      "type": "object"
    },
    "ResponseWarning": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "title": "Code",
          "type": "string"
        },
        "message": {
          "title": "Message",
          "type": "string"
        }
      },
      "required": [
        "code",
        "message"
      ],
      "title": "ResponseWarning",
      "type": "object"
    },
    "RiskExposureOracleScope": {
      "properties": {
        "categories": {
          "items": {
            "type": "string",
            "const": "government_sanctions"
          },
          "type": "array",
          "title": "Categories"
        },
        "confidence_tier": {
          "type": "string",
          "const": "verified",
          "title": "Confidence Tier"
        },
        "max_hops": {
          "type": "integer",
          "const": 0,
          "title": "Max Hops"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "categories",
        "confidence_tier",
        "max_hops"
      ],
      "title": "RiskExposureOracleScope"
    },
    "RiskExposureOracleTopExposure": {
      "properties": {
        "entity": {
          "type": "string",
          "title": "Entity"
        },
        "category": {
          "type": "string",
          "const": "government_sanctions",
          "title": "Category"
        },
        "source": {
          "type": "string",
          "title": "Source"
        },
        "hops": {
          "type": "integer",
          "const": 0,
          "title": "Hops"
        },
        "flow_share": {
          "type": "number",
          "minimum": 0.0,
          "title": "Flow Share"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "entity",
        "category",
        "source",
        "hops",
        "flow_share"
      ],
      "title": "RiskExposureOracleTopExposure"
    }
  }
}