{
  "openapi": "3.1.0",
  "info": {
    "title": "Limitguard.ai",
    "description": "Lead validation API: the company behind each lead checked against the NL and BE business registers, EU VAT and sanctions lists, plus company, KYB and agent wallet checks for developers and AI agents",
    "version": "0.1.0"
  },
  "paths": {
    "/health": {
      "get": {
        "summary": "Health Check",
        "operationId": "health_check_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/entity/check": {
      "post": {
        "summary": "Entity Check",
        "description": "Full entity trust check.\n\nAlways runs country risk and sanctions; runs each other data source\nwhose identifier is provided (up to 8 total), computes a trust score,\nassigns a cluster, and returns a recommendation.\n\n`entity_name` and `country` are required; identifiers (kvk_number,\ncbe_number, domain, iban, vat_number, wallet_address) are optional and\nraise confidence. With none, only country risk and sanctions run (plus a\nKVK name search for NL), at lower confidence.",
        "operationId": "entity_check_v1_entity_check_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntityCheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not cached (X-Response-Quality: cached); no data source was called",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotCachedResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/entity/deep-check": {
      "post": {
        "summary": "Entity Deep Check",
        "description": "Deep check: extended PEP/RCA exposure screening, the Dutch insolvency\nregister on every tier, adverse media on the extended tier, an\nItalian credit report on the credit tier.\n\n`pep_extended` is the source the base check does not return. /v1/entity/check\nqueries the same OpenSanctions collection but filters to sanctions/enforcement\ndatasets and reduces the answer to a boolean (app/services/sanctions.py); the\nrole.pep/role.rca detail is fetched and discarded. This endpoint keeps it.\n\n`insolvency_records` is the Centraal Insolventieregister (NL only; for any other\ncountry the field says `applicable: false`). It is queried by `kvk_number` when\nthe body carries one (exact), else by `entity_name` (trade-name search).\n\n`kvk_register_flags` is KVK's own register status for a Dutch BV or NV:\n`actief` and `insolventieCode` from KVK's Open Dataset Basisbedrijfsgegevens. It\nis null while KVK_REGISTER_FLAGS_ENABLED is off, for any country other than NL and\nwithout `kvk_number`. `not_covered` means the dataset has no entry (not a BV or\nNV). `not_available` means KVK did not answer. `not_applicable` means\n`kvk_number` is not 8 digits, so no call is made. None of these is a clean\nanswer, and none turns the call into a 503. `findings` lists the actions these flags\ngive, with exactly one finding when KVK and the insolvency register disagree.\n\n`credit_report` is an Openapi.com credit score, Italy only, available when\nOPENAPI_CREDIT_API_KEY is configured -- see /health. For any other country, or\na supported one with no `credit_report_identifier` (VAT number, tax code or\ncompany ID) in the body, the field says `applicable: false` rather than being\nomitted or erroring, the same pattern `insolvency_records` uses for non-NL, and\nthe `credit` tier's premium is never billed for it (app/middleware/x402.py\nprobes the country before pricing the call).\n\nThree tiers, resolved from X-Response-Quality by the x402 middleware: `fresh`\n(default; the `deep` tier, $0.88) returns pep_extended and insolvency_records;\n`enhanced` (the `extended` tier, $1.71) adds `adverse_media` from dilisense;\n`credit` ($2.45, Italy only, available when enabled) adds `credit_report`\ninstead. There is no cache-only branch, so `cached` is quoted, charged and\nserved as `fresh`. If a source of the requested tier cannot be reached the\nanswer is a 503 (`pep_source_unavailable`, `insolvency_source_unavailable`,\n`adverse_media_source_unavailable` or `credit_report_source_unavailable`),\nnever a fabricated clean screen, and the x402 gate settles only on a 2xx so the\ncall is not charged.",
        "operationId": "entity_deep_check_v1_entity_deep_check_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeepCheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeepCheckResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "A source of the requested tier is unavailable; payment is not settled",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/risk/score": {
      "post": {
        "summary": "Risk Score",
        "description": "Quick risk assessment using country risk + sanctions only.\n\nFaster than /entity/check (2 sources vs up to 8). Returns risk_score\nwhere 0 = lowest risk, 100 = highest risk.",
        "operationId": "risk_score_v1_risk_score_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/app__models__request__RiskScoreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RiskResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not cached (X-Response-Quality: cached); no data source was called",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotCachedResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/keys/create": {
      "post": {
        "summary": "Create Key",
        "description": "Create a new API key for self-service provisioning.\n\nOnly free and sandbox tiers can be created directly.\nFor paid tiers, create a free key first then POST /v1/keys/upgrade/{tier}.\n\nReturns the plaintext key exactly once. The key cannot be retrieved\nafter this response - only a SHA-256 hash is stored.",
        "operationId": "create_key_v1_keys_create_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KeyCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyCreateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys/usage": {
      "get": {
        "summary": "Get Usage",
        "description": "Check current API key usage, the tier's real rate limits and prepaid balance.\n\nSend X-API-Key header to identify the key. Free endpoint (no x402 cost).\n`balance_usd` is the prepaid balance each priced call is debited from.\n`rate_limit_per_minute`/`rate_limit_per_day` are the caps that actually\nthrottle calls (app.middleware.rate_limit.TIER_RATE_LIMITS); monthly_* is\na separate, looser abuse ceiling kept for backward compatibility.\nWith TIER_SUBSCRIPTION_ENABLED, `tier_expires_at`/`tier_queue` are the\nactive Growth/Pro term and the terms queued behind it (null otherwise).\n`watch_recheck_credits` is the scheduled re-checks the key's Growth/Pro\npurchases bought and it has not spent yet.",
        "operationId": "get_usage_v1_keys_usage_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyUsageResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/keys/revoke": {
      "post": {
        "summary": "Revoke Key",
        "description": "Revoke an API key permanently.\n\nThe key being revoked is identified by the X-API-Key header.\nThis action is irreversible: the key stops working immediately.\nAny remaining prepaid balance of a key that holds its own is forfeited; a key\nthat belongs to a workspace draws from the workspace balance, which revoking\nthe key never touches.",
        "operationId": "revoke_key_v1_keys_revoke_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Revoke Key V1 Keys Revoke Post"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/keys/upgrade/{tier}": {
      "post": {
        "summary": "Upgrade Key",
        "description": "Buy prepaid balance via x402 USDC payment.\n\nThe x402 price is credited 1:1 to the key's prepaid balance and the tier\nlabel is set to the higher of the current and purchased tier (the label\nselects burst limits in rate_limit.py; it never downgrades). Repeat\npurchases are allowed. Each priced call is then debited at the price in\nthe pricing table.\n\nThe x402 middleware verifies the payment signature before this handler runs.\nThe handler then checks the funds on chain and settles the payment\nwith a mined receipt before it applies the upgrade or the credit. The credit\nis the amount paid, capped at the tier price.\nSend X-API-Key header to identify which key to credit.\n\nLadder prices: indie \\$29, starter \\$99, growth \\$299, pro \\$999.",
        "operationId": "upgrade_key_v1_keys_upgrade__tier__post",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "tier",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tier"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyUpgradeResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/keys/topup/{usd}": {
      "post": {
        "summary": "Topup Key",
        "description": "Top up a key's prepaid balance via x402 USDC payment.\n\nThe x402 middleware prices this path at {usd} dollars and verifies the payment\nsignature before this handler runs. The handler then checks the funds\non chain and settles the payment with a mined receipt before it credits. The\namount paid is credited, capped at {usd} dollars. Each priced call is then\ndebited at the price in the pricing table.",
        "operationId": "topup_key_v1_keys_topup__usd__post",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "usd",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{1,12}$",
              "description": "Whole US dollars to add to the prepaid balance (ASCII digits only)",
              "title": "Usd"
            },
            "description": "Whole US dollars to add to the prepaid balance (ASCII digits only)"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeyTopupResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/usage/summary": {
      "get": {
        "summary": "Get Usage Summary",
        "description": "Return aggregated usage for the authenticated API key.",
        "operationId": "get_usage_summary_v1_usage_summary_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(day|week|month)$",
              "default": "day",
              "title": "Period"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageSummary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/usage/endpoints": {
      "get": {
        "summary": "Get Endpoint Counts",
        "description": "Return per-endpoint call counts for the authenticated API key.",
        "operationId": "get_endpoint_counts_v1_usage_endpoints_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": {
                    "type": "integer"
                  },
                  "type": "object",
                  "title": "Response Get Endpoint Counts V1 Usage Endpoints Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/usage": {
      "get": {
        "summary": "Get Customer Usage",
        "description": "Return customer usage analytics for the authenticated API key.\n\nIncludes quota tracking, call statistics, performance metrics, and cost breakdown.\nRequires API key authentication.\n\nArgs:\n    period: Time period for usage aggregation (default: current_month)\n    api_key: Validated API key from require_api_key dependency\n\nReturns:\n    CustomerUsageResponse with complete usage data",
        "operationId": "get_customer_usage_v1_usage_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/UsagePeriod",
              "default": "current_month"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerUsageResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/audit/trail": {
      "get": {
        "summary": "Get Audit Trail",
        "description": "Return recent audit trail entries, filtered by tenant (DYN-403).",
        "operationId": "get_audit_trail_v1_audit_trail_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "title": "Response Get Audit Trail V1 Audit Trail Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/audit/verify": {
      "get": {
        "summary": "Verify Audit Chain",
        "description": "Verify the caller's own audit entries and the chain links around them.\n\nTenant-scoped like /audit/trail. records_checked counts the\ncaller's entries only; no service-wide totals.",
        "operationId": "verify_audit_chain_v1_audit_verify_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Verify Audit Chain V1 Audit Verify Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/audit/query": {
      "get": {
        "summary": "Query Audit Trail",
        "description": "Query persistent audit trail entries with filters (DYN-343).\n\nTenant-scoped: only returns entries belonging to the caller (DYN-403).",
        "operationId": "query_audit_trail_v1_audit_query_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_id",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Entity Id"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "From"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Query Audit Trail V1 Audit Query Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/audit/sanctions": {
      "get": {
        "summary": "Query Sanctions Decisions",
        "description": "Query sanctions decision audit trail, tenant-scoped (DYN-475).",
        "operationId": "query_sanctions_decisions_v1_audit_sanctions_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_hash",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Entity Hash"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "From"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "To"
            }
          },
          {
            "name": "decision",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Decision"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          },
          {
            "name": "fmt",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Response format: json or csv",
              "title": "Fmt"
            },
            "description": "Response format: json or csv"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks": {
      "get": {
        "summary": "List Webhooks",
        "description": "List active webhook registrations belonging to the caller.\n\nSecrets are NOT included; they are only shown at creation time.",
        "operationId": "list_webhooks_v1_webhooks_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WebhookListResponse"
                  },
                  "type": "array",
                  "title": "Response List Webhooks V1 Webhooks Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      },
      "post": {
        "summary": "Register Webhook",
        "description": "Register a new webhook endpoint. URL must use HTTPS.\n\nReturns the signing secret ONE TIME: store it securely.",
        "operationId": "register_webhook_v1_webhooks_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebhookCreateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/webhooks/{webhook_id}": {
      "delete": {
        "summary": "Delete Webhook",
        "description": "Remove a webhook registration. Returns 404 if not found or not owned.",
        "operationId": "delete_webhook_v1_webhooks__webhook_id__delete",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Webhook Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/webhooks/{webhook_id}/test": {
      "post": {
        "summary": "Test Webhook",
        "description": "Send a test event to a webhook endpoint. Returns 404 if not found or not owned.",
        "operationId": "test_webhook_v1_webhooks__webhook_id__test_post",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Webhook Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Test Webhook V1 Webhooks  Webhook Id  Test Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/data/purge": {
      "delete": {
        "summary": "Purge Entity Data",
        "description": "Right to erasure (GDPR Art. 17): delete all data for an entity.",
        "operationId": "purge_entity_data_v1_data_purge_delete",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErasureRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErasureResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/data/retention": {
      "get": {
        "summary": "Get Retention Policies",
        "description": "View all active data retention policies.",
        "operationId": "get_retention_policies_v1_data_retention_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/RetentionPolicy"
                  },
                  "type": "array",
                  "title": "Response Get Retention Policies V1 Data Retention Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/badge/{entity_id}.json": {
      "get": {
        "summary": "Badge JSON (withdrawn)",
        "description": "Withdrawn: answers 410 Gone and charges nothing.\n\nThe badge showed a demo score that was not based on any check. To check a\ncompany, use POST /v1/entity/check.",
        "operationId": "get_badge_json_v1_badge__entity_id__json_get",
        "deprecated": true,
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Id"
            }
          }
        ],
        "responses": {
          "410": {
            "description": "Withdrawn. Nothing is charged; see alternatives.",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/badge/{entity_id}": {
      "get": {
        "summary": "Badge SVG (withdrawn)",
        "description": "Withdrawn: answers 410 Gone with a JSON body and no image.\n\nThe badge showed a demo score that was not based on any check. To check a\ncompany, use POST /v1/entity/check.",
        "operationId": "get_badge_svg_v1_badge__entity_id__get",
        "deprecated": true,
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Id"
            }
          }
        ],
        "responses": {
          "410": {
            "description": "Withdrawn. Nothing is charged; see alternatives.",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/verify/{entity_id}": {
      "get": {
        "summary": "Verification page data (withdrawn)",
        "description": "Withdrawn: answers 410 Gone and charges nothing.\n\nThe page showed a demo score that was not based on any check. To check a\ncompany, use POST /v1/entity/check.",
        "operationId": "get_verification_data_v1_verify__entity_id__get",
        "deprecated": true,
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Id"
            }
          }
        ],
        "responses": {
          "410": {
            "description": "Withdrawn. Nothing is charged; see alternatives.",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/self-verify": {
      "get": {
        "summary": "Self Verify",
        "description": "Run Limitguard through its own trust verification.\n\nPublic endpoint (no auth) - transparency is the point.\nIncludes CORS headers for embedding.\n\nReturns:\n    SelfVerificationResult with trust score, signals, and methodology",
        "operationId": "self_verify_v1_self_verify_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SelfVerificationResult"
                }
              }
            }
          }
        }
      }
    },
    "/v1/methodology": {
      "get": {
        "summary": "Get Methodology",
        "description": "Get the methodology of Limitguard's own self-verification score.\n\nThese are the weights of GET /v1/self-verify, Limitguard scoring itself.\nThey are not the weights of the trust score customers buy.\n\nPublic endpoint (no auth) for transparency.\nIncludes CORS headers.\n\nReturns:\n    ScoringMethodology with version, sources, weights, algorithm",
        "operationId": "get_methodology_v1_methodology_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScoringMethodology"
                }
              }
            }
          }
        }
      }
    },
    "/v1/self-verify/signals": {
      "get": {
        "summary": "Get Signals",
        "description": "Get list of trust signals evaluated.\n\nPublic endpoint (no auth) for transparency.\nIncludes CORS headers.\n\nReturns:\n    List of TrustSignal objects",
        "operationId": "get_signals_v1_self_verify_signals_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/TrustSignal"
                  },
                  "type": "array",
                  "title": "Response Get Signals V1 Self Verify Signals Get"
                }
              }
            }
          }
        }
      }
    },
    "/v1/certificate/{certificate_hash}": {
      "get": {
        "summary": "Verify Certificate",
        "description": "Verify and retrieve a certificate by its hash.\n\nPublic endpoint (no auth required) for certificate embedding and verification.\n\nArgs:\n    certificate_hash: SHA-256 hash of certificate\n\nReturns:\n    CertificateVerifyResponse with verification status\n\nRaises:\n    HTTPException: 404 if certificate not found",
        "operationId": "verify_certificate_v1_certificate__certificate_hash__get",
        "parameters": [
          {
            "name": "certificate_hash",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Certificate Hash"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateVerifyResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/providers/register": {
      "post": {
        "summary": "Register Provider",
        "description": "Register a validation provider.\n\nRequires authentication via X-API-Key header.\n\nArgs:\n    request: Provider registration request\n    api_key: Validated API key from header\n\nReturns:\n    ProviderRegistration with assigned provider_id",
        "operationId": "register_provider_v1_providers_register_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProviderRegistrationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderRegistration"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/providers": {
      "get": {
        "summary": "List Providers",
        "description": "List all registered validation providers.\n\nRequires authentication via X-API-Key header.\n\nArgs:\n    api_key: Validated API key from header\n\nReturns:\n    List of ProviderRegistration objects",
        "operationId": "list_providers_v1_providers_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ProviderRegistration"
                  },
                  "type": "array",
                  "title": "Response List Providers V1 Providers Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/providers/{provider_id}": {
      "get": {
        "summary": "Get Provider",
        "description": "Get a single validation provider by ID.\n\nRequires authentication via X-API-Key header.\n\nArgs:\n    provider_id: Provider UUID\n    api_key: Validated API key from header\n\nReturns:\n    ProviderRegistration\n\nRaises:\n    HTTPException: 404 if provider not found",
        "operationId": "get_provider_v1_providers__provider_id__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "provider_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Provider Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProviderRegistration"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/legal/privacy": {
      "get": {
        "summary": "Get Privacy Policy",
        "description": "Get privacy policy (public, no auth required).",
        "operationId": "get_privacy_policy_v1_legal_privacy_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalDocument"
                }
              }
            }
          }
        }
      }
    },
    "/v1/legal/terms": {
      "get": {
        "summary": "Get Terms Of Service",
        "description": "Get terms of service (public, no auth required).",
        "operationId": "get_terms_of_service_v1_legal_terms_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalDocument"
                }
              }
            }
          }
        }
      }
    },
    "/v1/legal/dpa": {
      "get": {
        "summary": "Get DPA",
        "description": "Get Data Processing Agreement (public, no auth required).",
        "operationId": "get_dpa_v1_legal_dpa_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegalDocument"
                }
              }
            }
          }
        }
      }
    },
    "/v1/legal": {
      "get": {
        "summary": "List Legal Documents",
        "description": "List all legal documents (public, no auth required).",
        "operationId": "list_legal_documents_v1_legal_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/LegalDocument"
                  },
                  "type": "array",
                  "title": "Response List Legal Documents V1 Legal Get"
                }
              }
            }
          }
        }
      }
    },
    "/v1/scores/{subject}/history": {
      "get": {
        "summary": "Get Score History",
        "description": "Get trust score history for an entity (requires authentication).\n\nArgs:\n    subject: Entity name/domain/wallet address\n    limit: Maximum number of entries to return (default: 50, max: 1000)\n\nReturns:\n    ScoreHistoryResponse with entries and trend analysis",
        "operationId": "get_score_history_v1_scores__subject__history_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "subject",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Subject"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScoreHistoryResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/feedback": {
      "post": {
        "summary": "Submit Feedback",
        "description": "Submit feedback on trust score accuracy (requires authentication).\n\nArgs:\n    request: Feedback details (subject, type, optional comment)\n\nReturns:\n    FeedbackResponse with confirmation",
        "operationId": "submit_feedback_v1_feedback_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FeedbackRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FeedbackResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/reputation/score": {
      "post": {
        "summary": "Reputation Score",
        "description": "Compute reputation score with trust decay for an entity.\n\nIf trust_score/cluster are omitted, a SIMPLIFIED score is derived from country risk\nand the sanctions screen only (requires country): no registry, domain or financial\ncheck runs. The response says so in ``score_basis``.",
        "operationId": "reputation_score_v1_reputation_score_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReputationScoreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Reputation Score V1 Reputation Score Post"
                }
              }
            }
          },
          "404": {
            "description": "Not cached (X-Response-Quality: cached); no data source was called",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotCachedResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/reputation/history/{entity_hash}": {
      "get": {
        "summary": "Reputation History",
        "description": "Get reputation score trend for an entity by hash.\n\nReturns decay trajectory and cluster history.",
        "operationId": "reputation_history_v1_reputation_history__entity_hash__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_hash",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Hash"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Reputation History V1 Reputation History  Entity Hash  Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/watchlist": {
      "get": {
        "summary": "List Watchlist",
        "description": "List all entities on the watchlist.",
        "operationId": "list_watchlist_v1_watchlist_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  "type": "array",
                  "title": "Response List Watchlist V1 Watchlist Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      },
      "post": {
        "summary": "Add To Watchlist",
        "description": "Add an entity to the watchlist for continuous monitoring.",
        "operationId": "add_to_watchlist_v1_watchlist_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WatchlistAddRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Add To Watchlist V1 Watchlist Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/watchlist/{entity_id}": {
      "delete": {
        "summary": "Remove From Watchlist",
        "description": "Remove an entity from the watchlist.",
        "operationId": "remove_from_watchlist_v1_watchlist__entity_id__delete",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Id"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/financial/health": {
      "get": {
        "summary": "Financial Health",
        "description": "Get overall financial system health status.\n\nThe settlement fields are operator-wide and only disclosed to admin keys; other callers do not receive them at all. So is\ntreasury_balance_usdc, the platform treasury rather than the caller's. Revenue scope follows the same split: an admin sees the\nplatform-wide total -- every key's prepaid revenue plus anonymous x402\nwallet revenue that belongs to no tenant; anyone else sees only revenue\nattributed to their own key.",
        "operationId": "financial_health_v1_financial_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletHealth"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/treasury/settlements": {
      "get": {
        "summary": "Treasury Settlements",
        "description": "Query settlement status. Optionally filter by nonce.",
        "operationId": "treasury_settlements_v1_treasury_settlements_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "nonce",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by payment nonce",
              "title": "Nonce"
            },
            "description": "Filter by payment nonce"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Treasury Settlements V1 Treasury Settlements Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/treasury/revenue/{agent_id}": {
      "get": {
        "summary": "Agent Revenue",
        "description": "Get revenue attributed to a specific downstream AI agent.",
        "operationId": "agent_revenue_v1_treasury_revenue__agent_id__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRevenue"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/wallet/balance": {
      "get": {
        "summary": "Wallet Balance",
        "description": "WaaS endpoint: get USDC balance for an ERC-8004 registered agent.\n\n`agent_id` is either the agent's wallet address (EVM 0x..., Base mainnet)\nor a numeric ERC-8004 agentId. A wallet must be registered in the\nconfigured ERC-8004 Identity Registry (one balanceOf call); a numeric id\nmust have been minted (ownerOf does not revert). Either shape that is\nwell-formed but not found answers 404; a malformed value answers 422.\n\nFails closed rather than quoting a balance it could not read:\n503 wallet_registry_unconfigured when no registry address is configured,\n503 wallet_rpc_unavailable when the Base read fails or the breaker is\nopen past its 24h stale-cache ceiling.",
        "operationId": "wallet_balance_v1_wallet_balance_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Agent's wallet address (EVM 0x\u2026, Base mainnet), or a numeric ERC-8004 agentId (the registry's own token id, digits only) -- resolved to that agent's payment wallet (getAgentWallet, falling back to its owner) directly, so an agent whose payment wallet differs from the wallet holding its identity NFT is still found",
              "title": "Agent Id"
            },
            "description": "Agent's wallet address (EVM 0x\u2026, Base mainnet), or a numeric ERC-8004 agentId (the registry's own token id, digits only) -- resolved to that agent's payment wallet (getAgentWallet, falling back to its owner) directly, so an agent whose payment wallet differs from the wallet holding its identity NFT is still found"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/compliance/alerts": {
      "get": {
        "summary": "List Alerts",
        "description": "List alerts, newest first: global list changes plus the caller's own hits.\n\nThe caller's subscriptions (if any) narrow the global alerts only, to\ntheir minimum severity and their jurisdictions; the caller's own hits are\nalways shown. ``subscription_filters`` in the response says what was\napplied (null without a subscription), so a narrowed list never reads as\n\"no alerts\". Jurisdiction codes are stored lower-case; \"NL\" matches \"nl\".",
        "operationId": "list_alerts_v1_compliance_alerts_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "jurisdiction",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by jurisdiction of the source list: us, eu or un",
              "title": "Jurisdiction"
            },
            "description": "Filter by jurisdiction of the source list: us, eu or un"
          },
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/AlertSeverity"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by severity",
              "title": "Severity"
            },
            "description": "Filter by severity"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response List Alerts V1 Compliance Alerts Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/compliance/sources": {
      "get": {
        "summary": "List Sources",
        "description": "List all regulatory sources with health status.",
        "operationId": "list_sources_v1_compliance_sources_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "jurisdiction",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Jurisdiction"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ComplianceSourceStatus"
                  },
                  "title": "Response List Sources V1 Compliance Sources Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/compliance/subscribe": {
      "post": {
        "summary": "Create Subscription",
        "description": "Create a compliance alert subscription.\n\nThe subscription narrows what GET /v1/compliance/alerts returns for this key; there is still no push delivery, so the response carries a ``notice``\nsaying delivery is by polling that route, not by digest or webhook.",
        "operationId": "create_subscription_v1_compliance_subscribe_post",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_types",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [
                "financial_services"
              ],
              "title": "Entity Types"
            }
          },
          {
            "name": "severity_filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AlertSeverity"
              },
              "default": [
                "critical",
                "high"
              ],
              "title": "Severity Filter"
            }
          },
          {
            "name": "jurisdictions",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [
                "eu"
              ],
              "title": "Jurisdictions"
            }
          },
          {
            "name": "tier",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SubscriptionTier",
              "description": "Stored on the subscription, not used yet: no tier sends a digest or alert.",
              "default": "basic"
            },
            "description": "Stored on the subscription, not used yet: no tier sends a digest or alert."
          },
          {
            "name": "webhook_url",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Stored on the subscription, not used yet: nothing is posted to it. Must be https.",
              "title": "Webhook Url"
            },
            "description": "Stored on the subscription, not used yet: nothing is posted to it. Must be https."
          }
        ],
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlertSubscriptionCreated"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/compliance/readiness/{entity_id}": {
      "get": {
        "summary": "AI Act Readiness",
        "description": "EU AI Act readiness self-assessment for one AI system.\n\nThe result depends only on system_type and the completed_items the caller\nsends; entity_id is echoed as a label and nothing is looked up about it, so\nthe response says so in `basis` and `note`.",
        "operationId": "ai_act_readiness_v1_compliance_readiness__entity_id__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Id"
            }
          },
          {
            "name": "system_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "AI system type: credit_scoring, trust_scoring, biometric_identification or employment_screening (others answer UNDETERMINED)",
              "default": "trust_scoring",
              "title": "System Type"
            },
            "description": "AI system type: credit_scoring, trust_scoring, biometric_identification or employment_screening (others answer UNDETERMINED)"
          },
          {
            "name": "completed_items",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Checklist items you have completed, one parameter per item: risk_management, data_governance, technical_docs, record_keeping, transparency, human_oversight, accuracy_robustness",
              "default": [],
              "title": "Completed Items"
            },
            "description": "Checklist items you have completed, one parameter per item: risk_management, data_governance, technical_docs, record_keeping, transparency, human_oversight, accuracy_robustness"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessScore"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/compliance/report/{entity_id}": {
      "get": {
        "summary": "Compliance Report",
        "description": "De-listed compliance report: answers 410 Gone, charges nothing.\n\nThis route used to sell a \"full compliance assessment for an entity\", but it\nreturned the same EU AI Act briefing for every entity_id. There is no\nper-entity AI Act data to build a real one from, so it was withdrawn. For a\nreadiness score from inputs you supply, use\nGET /v1/compliance/readiness/{entity_id}.\n\nThe route is kept as a tombstone rather than deleted so an agent that still\nholds the old listing gets a clear, machine-readable answer instead of a\nbare 404. It is absent from ENDPOINT_PRICING_PREFIXES, so the payment gate\nnever quotes a 402 for it, and it takes no API key because the response\nreveals nothing. Sandbox callers get the same 410: there is no mock either.\n\nOnce the per-entity report is live (enabled AND priced), the body also\npoints to POST /v1/reports/entity; while it is dark the body is unchanged.",
        "operationId": "compliance_report_v1_compliance_report__entity_id__get",
        "parameters": [
          {
            "name": "entity_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Entity Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/reports/entity": {
      "post": {
        "tags": [
          "reports"
        ],
        "summary": "Create Entity Report",
        "description": "Build a per-entity report from one real check (or a stored check_id).",
        "operationId": "create_entity_report_v1_reports_entity_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntityReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityReport"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/reports/{report_id}": {
      "get": {
        "tags": [
          "reports"
        ],
        "summary": "Get Entity Report",
        "description": "A stored report, owner only; ``?format=pdf`` renders it as PDF.\n\nWith X-Report-Token instead of a key: the report that token was issued for.",
        "operationId": "get_entity_report_v1_reports__report_id__get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Report Id"
            }
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "enum": [
                "json",
                "pdf"
              ],
              "type": "string",
              "default": "json",
              "title": "Format"
            }
          },
          {
            "name": "X-Report-Token",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "X-Report-Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The stored report as JSON, or as PDF with ?format=pdf.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityReport"
                }
              },
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sanctions/preview": {
      "post": {
        "tags": [
          "sanctions"
        ],
        "summary": "Sanctions Preview",
        "description": "Free yes/no screen of a name against the local OFAC SDN, EU and UN lists.",
        "operationId": "sanctions_preview_v1_sanctions_preview_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SanctionsScreenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SanctionsPreviewResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/sanctions/screen": {
      "post": {
        "tags": [
          "sanctions"
        ],
        "summary": "Sanctions Screen Route",
        "description": "Screen a name against the local OFAC SDN, EU and UN lists: matched entries.",
        "operationId": "sanctions_screen_route_v1_sanctions_screen_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SanctionsScreenRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SanctionsScreenResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/sanctions/wallet": {
      "post": {
        "tags": [
          "sanctions"
        ],
        "summary": "Sanctions Wallet",
        "description": "Free yes/no check of a wallet address against the OFAC SDN list.\n\nThe full wallet screen (balances, age and activity, contract and delegation,\nrisk score with rules and advice, linked entities, ERC-8004 identity and\nreputation) is POST /v1/mcp/verify-wallet, priced in ``upgrade``.",
        "operationId": "sanctions_wallet_v1_sanctions_wallet_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WalletSanctionsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WalletSanctionsResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/agent/check": {
      "post": {
        "tags": [
          "agent"
        ],
        "summary": "Agent Check",
        "description": "Check a counterparty agent's wallet: sanctions, balance, ERC-8004 identity, wallet risk, open feedback.",
        "operationId": "agent_check_v1_agent_check_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentCheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentCheckResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/leads/verify": {
      "post": {
        "tags": [
          "leads"
        ],
        "summary": "Lead Verify",
        "description": "Verify one NL/BE sales lead: register, VAT, mail server, IBAN, sanctions, lead score.",
        "operationId": "lead_verify_v1_leads_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LeadVerifyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LeadVerifyResult"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/sales/listing": {
      "get": {
        "tags": [
          "Sales"
        ],
        "summary": "Get Marketplace Listing",
        "description": "Get Bazaar-compatible service listing for AI agent discovery.\n\nReturns structured listing that AI agents can parse to discover\navailable endpoints, pricing, and payment methods.",
        "operationId": "get_marketplace_listing_v1_sales_listing_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Get Marketplace Listing V1 Sales Listing Get"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/sales/recommendations": {
      "get": {
        "tags": [
          "Sales"
        ],
        "summary": "Get Recommendations",
        "description": "Get cross-sell recommendations based on current usage.\n\nAI agents calling one endpoint may benefit from complementary services.\n\nArgs:\n    current_endpoint: The endpoint path currently being used\n    trust_score: Optional trust score for context-aware recommendations",
        "operationId": "get_recommendations_v1_sales_recommendations_get",
        "security": [
          {
            "APIKeyHeader": []
          }
        ],
        "parameters": [
          {
            "name": "current_endpoint",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Endpoint the caller is currently using",
              "title": "Current Endpoint"
            },
            "description": "Endpoint the caller is currently using"
          },
          {
            "name": "trust_score",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "integer",
                  "maximum": 100,
                  "minimum": 0
                },
                {
                  "type": "null"
                }
              ],
              "title": "Trust Score"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "title": "Response Get Recommendations V1 Sales Recommendations Get"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/quickstart": {
      "get": {
        "summary": "Quickstart Guide",
        "description": "Interactive quickstart guide, no auth required.\n\nReturns everything needed to make a first API call:\nendpoints, pricing, curl examples, and payment instructions.",
        "operationId": "quickstart_guide_v1_quickstart_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/kyb/check": {
      "post": {
        "summary": "KYB Check",
        "description": "Full KYB (Know Your Business) verification.\n\nCombines entity trust check with sanctions screening and company\nregistration verification. Returns comprehensive KYB result with\nverification status, risk flags, and compliance recommendations.\n`verified` means trust_score 60 or more; `register_verified` says whether\nthe KVK or KBO register found the company.\n\nPaid with x402 it costs \\$0.29 fresh or \\$0.25 cached (the agent price).\nAn API key's prepaid balance is debited \\$1.50 fresh or \\$0.25 cached (the account price).",
        "operationId": "kyb_check_v1_kyb_check_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KYBCheckRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "KYB result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KYBCheckResponse",
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Kyb Check V1 Kyb Check Post"
                }
              }
            }
          },
          "404": {
            "description": "Not cached (X-Response-Quality: cached); no data source was called",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotCachedResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/mcp/check-entity": {
      "post": {
        "tags": [
          "mcp"
        ],
        "summary": "MCP Check Entity",
        "description": "Company check (MCP-compatible endpoint).",
        "operationId": "mcp_check_entity_v1_mcp_check_entity_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckEntityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/mcp/check-agent": {
      "post": {
        "tags": [
          "mcp"
        ],
        "summary": "MCP Check Agent (not implemented)",
        "description": "Not implemented: always answers status \"unimplemented\", verified false and\ntrust_score 0, at no charge. Do not use it for authorization decisions. To\ncheck an agent wallet, call POST /v1/agent/check instead.",
        "operationId": "mcp_check_agent_v1_mcp_check_agent_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckAgentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/mcp/trust-score": {
      "post": {
        "tags": [
          "mcp"
        ],
        "summary": "MCP Trust Score",
        "description": "The caller's own latest stored trust score for an entity (MCP-compatible endpoint, free).",
        "operationId": "mcp_trust_score_v1_mcp_trust_score_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrustScoreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/mcp/verify-wallet": {
      "post": {
        "tags": [
          "mcp"
        ],
        "summary": "MCP Verify Wallet",
        "description": "Screen a wallet: OFAC SDN match, on-chain signals, named rules. \\$0.005 by x402, \\$0.11 with an API key.",
        "operationId": "mcp_verify_wallet_v1_mcp_verify_wallet_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyWalletRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/v1/mcp/risk-score": {
      "post": {
        "tags": [
          "mcp"
        ],
        "summary": "MCP Risk Score",
        "description": "Quick risk assessment (MCP-compatible endpoint).",
        "operationId": "mcp_risk_score_v1_mcp_risk_score_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/app__routers__mcp__RiskScoreRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/x402/supported": {
      "get": {
        "tags": [
          "x402"
        ],
        "summary": "Get Supported",
        "description": "Return supported schemes and networks for this x402 resource server.\n\nResponse format follows x402 v2 spec SupportedKind structure.",
        "operationId": "get_supported_x402_supported_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/x402/verify": {
      "post": {
        "tags": [
          "x402"
        ],
        "summary": "Verify Payment",
        "description": "Verify a PaymentPayload without settling.\n\nAccepts base64-encoded PaymentPayload JSON (same as PAYMENT-SIGNATURE header).\nReturns {isValid, payer, invalidReason, ...} without recording or settling.\n\nUsed by clients to pre-validate before submitting to the protected endpoint.",
        "operationId": "verify_payment_x402_verify_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/x402/settle": {
      "post": {
        "tags": [
          "x402"
        ],
        "summary": "Settle Payment",
        "description": "Co-sign and broadcast a payment transaction.\n\nAccepts x402 spec request format:\n  - paymentPayload: base64-encoded PaymentPayload (PAYMENT-SIGNATURE header value)\n  - paymentRequirements: PaymentRequirements object (from PAYMENT-REQUIRED header)\n\nAlso accepts legacy format:\n  - payload: PaymentPayload JSON\n  - raw_transaction: base64 partially-signed Solana VersionedTransaction\n\nFor EVM payments, triggers settlement via on_chain_settlement.settle_evm_payment.\nReturns SettlementResponse-compatible JSON.",
        "operationId": "settle_payment_x402_settle_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "APIKeyHeader": []
          }
        ]
      }
    },
    "/.well-known/security.txt": {
      "get": {
        "summary": "Security TXT",
        "operationId": "security_txt__well_known_security_txt_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountValue": {
        "properties": {
          "current": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current"
          },
          "previous": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Previous"
          },
          "reason_current": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "not_in_filing",
                  "left_blank",
                  "not_published_short_form"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason Current"
          },
          "reason_previous": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "not_in_filing",
                  "left_blank",
                  "not_published_short_form"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason Previous"
          }
        },
        "type": "object",
        "title": "AccountValue",
        "description": "One account code, current and previous year.\n\nWhole euros except code 9087 (average staff in full-time equivalents). A\nmissing amount is None with its reason, never 0."
      },
      "ActivityEvidence": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "fetched_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fetched At"
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website"
          },
          "attribution": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "registrant",
                  "number",
                  "site_data",
                  "name_city"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Attribution"
          },
          "registrant": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registrant"
          },
          "site_names": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Site Names"
          },
          "products": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Products"
          },
          "numbers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Numbers"
          },
          "shops": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Shops"
          },
          "domain_registered_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Registered At"
          },
          "matched_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Matched Name"
          },
          "matched_city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Matched City"
          },
          "matched_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Matched Number"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "ActivityEvidence",
        "description": "What the company's website and shop listings show about its activities.\n\n``attribution`` is the Amendment 2 rule's answer (business_activities.attribute):\na name match and one related source, the domain's RDAP ``registrant``, a company\nor VAT ``number`` on the site, or the site's own structured data (``site_data``);\nelse ``name_city`` (a site name matching a trade name, same city); None: the\nsite is not the company's as far as the sources show, and no activity is shown.\n``registrant`` holds the organisation only (org, city, country, registrar_host),\nnever a person's fields."
      },
      "AdverseMediaArticle": {
        "properties": {
          "headline": {
            "type": "string",
            "title": "Headline",
            "description": "Article headline as indexed by the vendor"
          },
          "source_link": {
            "type": "string",
            "title": "Source Link",
            "description": "URL of the article"
          },
          "category": {
            "type": "string",
            "title": "Category",
            "description": "dilisense exposure category, e.g. financial_crime"
          },
          "published_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Published At",
            "description": "ISO 8601 timestamp"
          },
          "language": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Language",
            "description": "ISO 639-1 language code"
          },
          "snippet": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Snippet",
            "description": "Bounded plain-text excerpt"
          }
        },
        "type": "object",
        "required": [
          "headline",
          "source_link",
          "category"
        ],
        "title": "AdverseMediaArticle",
        "description": "One adverse-media article, projected to the fields we stand behind.\n\nField names follow the dilisense `checkIndividual` article object (headline,\nsource_link, timestamp, language, body). `snippet` is the body with its ``<p>``\nmarkup stripped and bounded; `category` is the news-exposure bucket dilisense\nfiled the article under."
      },
      "AdverseMediaResult": {
        "properties": {
          "screened": {
            "type": "boolean",
            "title": "Screened",
            "description": "True when dilisense was actually queried"
          },
          "adverse_media_found": {
            "type": "boolean",
            "title": "Adverse Media Found",
            "description": "True when the vendor reported at least one news exposure"
          },
          "match_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Match Count",
            "description": "Total exposures reported (total_hits)"
          },
          "category_hits": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Category Hits",
            "description": "Exposures per dilisense category"
          },
          "articles": {
            "items": {
              "$ref": "#/components/schemas/AdverseMediaArticle"
            },
            "type": "array",
            "title": "Articles"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "description": "True when articles were capped below match_count",
            "default": false
          },
          "retrieved_at": {
            "type": "string",
            "title": "Retrieved At",
            "description": "ISO 8601 UTC timestamp of the query"
          }
        },
        "type": "object",
        "required": [
          "screened",
          "adverse_media_found",
          "match_count",
          "retrieved_at"
        ],
        "title": "AdverseMediaResult",
        "description": "Result of the `adverse_media` source. `screened` is never False on a 200.\n\nMirrors PepScreenResult: app/services/adverse_media.py raises rather than\nfabricating a clean screen, and the router turns that into a 503 so the payment\nis never settled. A negative means no *indexed reporting* matched,\nnot that no wrongdoing exists; `screened` and `adverse_media_found` are separate\nfields so a caller can tell \"looked, found nothing\" from \"did not look\"."
      },
      "AgentCheckRequest": {
        "properties": {
          "wallet": {
            "type": "string",
            "title": "Wallet",
            "description": "EVM wallet address (0x + 40 hex characters). Read on Base.",
            "examples": [
              "0x4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b4b"
            ]
          },
          "agent_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Id",
            "description": "Optional ERC-8004 agentId (decimal) the wallet claims. When given, the check reads that agent's owner and payment wallet and says whether this wallet is one of them.",
            "examples": [
              "1"
            ]
          },
          "domain": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 253
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain",
            "description": "Optional website domain the agent gives for itself (e.g. example.com). Reported with WHOIS age, mail records and TLS certificate; never read by the verdict.",
            "examples": [
              "example.com"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "wallet"
        ],
        "title": "AgentCheckRequest",
        "description": "An EVM wallet, and optionally the ERC-8004 agent id it claims."
      },
      "AgentCheckResponse": {
        "properties": {
          "wallet": {
            "type": "string",
            "title": "Wallet"
          },
          "chain_id": {
            "type": "string",
            "title": "Chain Id"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "block",
              "review",
              "no_findings"
            ],
            "title": "Verdict"
          },
          "verdict_reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Verdict Reasons"
          },
          "ran": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Ran"
          },
          "did_not_run": {
            "items": {
              "$ref": "#/components/schemas/SkippedComponent"
            },
            "type": "array",
            "title": "Did Not Run"
          },
          "sanctions": {
            "$ref": "#/components/schemas/SanctionsComponent"
          },
          "balance": {
            "$ref": "#/components/schemas/BalanceComponent"
          },
          "identity": {
            "$ref": "#/components/schemas/IdentityComponent"
          },
          "reputation": {
            "$ref": "#/components/schemas/ReputationComponent"
          },
          "wallet_risk": {
            "$ref": "#/components/schemas/WalletRiskComponent"
          },
          "domain": {
            "$ref": "#/components/schemas/DomainComponent"
          },
          "schema_version": {
            "type": "string",
            "const": "agent-check-v1",
            "title": "Schema Version",
            "default": "agent-check-v1"
          },
          "checked_at": {
            "type": "string",
            "title": "Checked At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "wallet",
          "chain_id",
          "verdict",
          "verdict_reasons",
          "ran",
          "did_not_run",
          "sanctions",
          "balance",
          "identity",
          "reputation",
          "wallet_risk",
          "domain",
          "checked_at"
        ],
        "title": "AgentCheckResponse",
        "description": "The bundle: one verdict, and each component with its own status."
      },
      "AgentReputation": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id"
          },
          "feedback_count": {
            "type": "integer",
            "title": "Feedback Count"
          },
          "distinct_clients": {
            "type": "integer",
            "title": "Distinct Clients"
          },
          "clients_capped": {
            "type": "boolean",
            "title": "Clients Capped"
          },
          "top_tags": {
            "items": {
              "$ref": "#/components/schemas/ReputationTag"
            },
            "type": "array",
            "title": "Top Tags",
            "default": []
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "agent_id",
          "feedback_count",
          "distinct_clients",
          "clients_capped"
        ],
        "title": "AgentReputation",
        "description": "Open ERC-8004 feedback summary for one agent id. Descriptive, never scored."
      },
      "AgentRevenue": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id",
            "description": "ERC-8004 agent identifier"
          },
          "total_revenue_usdc": {
            "type": "number",
            "minimum": 0.0,
            "title": "Total Revenue Usdc",
            "description": "Total revenue in USDC"
          },
          "call_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Call Count",
            "description": "Number of paid API calls"
          },
          "last_call_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Call At",
            "description": "Last call timestamp"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "total_revenue_usdc",
          "call_count"
        ],
        "title": "AgentRevenue",
        "description": "Revenue attributed to a downstream AI agent."
      },
      "AlertSeverity": {
        "type": "string",
        "enum": [
          "critical",
          "high",
          "medium",
          "low",
          "informational"
        ],
        "title": "AlertSeverity"
      },
      "AlertSubscriptionCreated": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id",
            "description": "Subscription ID"
          },
          "entity_types": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Entity Types",
            "description": "Sector filters"
          },
          "severity_filter": {
            "items": {
              "$ref": "#/components/schemas/AlertSeverity"
            },
            "type": "array",
            "title": "Severity Filter",
            "description": "Minimum severity to receive: the least severe entry is the threshold. Narrows global alerts only; your own hits are always shown"
          },
          "jurisdictions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Jurisdictions",
            "description": "Jurisdiction filters"
          },
          "tier": {
            "$ref": "#/components/schemas/SubscriptionTier",
            "default": "basic"
          },
          "webhook_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Webhook Url",
            "description": "Stored on the subscription, not used yet: nothing is posted to it."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "notice": {
            "type": "string",
            "title": "Notice",
            "description": "Whether the subscribed alert feed has anything to deliver"
          }
        },
        "type": "object",
        "required": [
          "id",
          "notice"
        ],
        "title": "AlertSubscriptionCreated",
        "description": "A new subscription plus the delivery status of its alert feed."
      },
      "BalanceComponent": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error",
              "not_requested"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "chain_id": {
            "type": "string",
            "title": "Chain Id"
          },
          "balance_usdc": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Balance Usdc"
          },
          "balance_native": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Balance Native"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status",
          "chain_id"
        ],
        "title": "BalanceComponent",
        "description": "USDC and native (ETH) balance of the wallet on the deployed Base chain."
      },
      "BalanceSheet": {
        "properties": {
          "assets": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assets"
          },
          "assets_current": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assets Current"
          },
          "assets_noncurrent": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assets Noncurrent"
          },
          "equity": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Equity"
          },
          "liabilities": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Liabilities"
          },
          "liabilities_current": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Liabilities Current"
          },
          "liabilities_noncurrent": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Liabilities Noncurrent"
          },
          "provisions": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provisions"
          },
          "equity_and_liabilities": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Equity And Liabilities"
          }
        },
        "type": "object",
        "title": "BalanceSheet",
        "description": "Whole euros, as filed."
      },
      "BeAccountsSection": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "has_filings": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Filings"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "model_kind": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "full",
                  "short",
                  "consolidated",
                  "unknown"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Kind"
          },
          "consolidated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consolidated"
          },
          "enterprise_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enterprise Name"
          },
          "period_start": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period Start"
          },
          "period_end": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Period End"
          },
          "approval_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Approval Date"
          },
          "years": {
            "items": {
              "type": "integer"
            },
            "type": "array",
            "title": "Years"
          },
          "values": {
            "additionalProperties": {
              "$ref": "#/components/schemas/AccountValue"
            },
            "type": "object",
            "title": "Values"
          },
          "history": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "History"
          },
          "history_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "History Reason"
          },
          "periods": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Periods"
          },
          "source_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source Url"
          },
          "retrieved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved At"
          },
          "cache_age_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cache Age Days"
          },
          "source": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "web_services",
                  "consult"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "bookkeeping": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bookkeeping"
          },
          "filings": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filings"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "BeAccountsSection",
        "description": "Belgian annual accounts filed with the National Bank of Belgium.\n\nShown on the report, never scored. ``values`` maps the official account code\n(``\"70\"`` turnover, ``\"10/15\"`` equity, ...) to the filed amounts; ``history``\nholds the two older years a small company's second filing adds. On any\nstatus other than ``ok`` every figure field is empty, never \"nothing filed\".\n``source`` is ``\"consult\"`` when read from the public Consult app; None\nmeans the web services, or a report stored before."
      },
      "BeShareholder": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "share_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Share Pct"
          },
          "enterprise_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enterprise Number"
          },
          "kvk_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Number"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "BeShareholder",
        "description": "One holder in the latest NBB filing's shareholder table. A holder with no\nenterprise number, no KVK number and no legal-form word may be a natural person: then\n``country`` is None, as the KBO directors carry a name only. ``kvk_number``: a Dutch\nholder's KVK number when the filing shows one; ``enterprise_number`` is Belgian only."
      },
      "BeShareholders": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "no_list",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "holders": {
            "items": {
              "$ref": "#/components/schemas/BeShareholder"
            },
            "type": "array",
            "title": "Holders"
          },
          "filing_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filing Year"
          },
          "gazette_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gazette Url"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "BeShareholders",
        "description": "Every shareholder the latest NBB filing names, sorted by % of the voting\nrights. ``no_list``: no filing (``no_filing``), no shareholder table in it (a short\nmodel, ``section_not_found``) or a table with no readable row (``no_rows``); never\n\"no owners\". Shown, never scored. Screened on the local sanctions lists in\n``EntityReport.party_sanctions`` while REPORT_PARTY_SANCTIONS_ENABLED is on.\n``gazette_url``: for ``no_filing``, the company's publications in the Belgian\nOfficial Gazette, where the founding deed names the founders. Built from the\nenterprise number, never fetched."
      },
      "Branches": {
        "properties": {
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          },
          "commercial": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commercial"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Branches"
      },
      "CashFlow": {
        "properties": {
          "operating": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Operating"
          },
          "investing": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Investing"
          },
          "financing": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Financing"
          },
          "net_cash_flows": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Net Cash Flows"
          },
          "closing_cash": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Closing Cash"
          }
        },
        "type": "object",
        "title": "CashFlow",
        "description": "The cash-flow statement's totals and closing cash, whole euros, as filed."
      },
      "CertificateVerifyResponse": {
        "properties": {
          "certificate": {
            "$ref": "#/components/schemas/TrustCertificate",
            "description": "Certificate data"
          },
          "valid": {
            "type": "boolean",
            "title": "Valid",
            "description": "Whether certificate is currently valid"
          },
          "issuer_trusted": {
            "type": "boolean",
            "title": "Issuer Trusted",
            "description": "True when the certificate was issued by an admin-role API key"
          }
        },
        "type": "object",
        "required": [
          "certificate",
          "valid",
          "issuer_trusted"
        ],
        "title": "CertificateVerifyResponse",
        "description": "Response for certificate verification."
      },
      "CheckAgentRequest": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id",
            "description": "Unique agent identifier"
          },
          "agent_name": {
            "type": "string",
            "title": "Agent Name",
            "description": "Human-readable agent name"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "agent_name"
        ],
        "title": "CheckAgentRequest"
      },
      "CheckEntityRequest": {
        "properties": {
          "entity_name": {
            "type": "string",
            "title": "Entity Name",
            "description": "Full legal name of the entity"
          },
          "country": {
            "type": "string",
            "title": "Country",
            "description": "ISO country code (NL, BE, etc.)"
          },
          "kvk_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Number"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          }
        },
        "type": "object",
        "required": [
          "entity_name",
          "country"
        ],
        "title": "CheckEntityRequest"
      },
      "Cluster": {
        "type": "string",
        "enum": [
          "established_eu_enterprise",
          "established_eu_sme",
          "verified_startup",
          "unverified_new",
          "high_risk_jurisdiction",
          "sanctions_flagged",
          "insufficient_data",
          "mixed_signals"
        ],
        "title": "Cluster"
      },
      "CompanyBlock": {
        "properties": {
          "registered": {
            "type": "boolean",
            "title": "Registered"
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "legal_form": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Form"
          },
          "registered_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registered Name"
          },
          "name_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name Match"
          },
          "registered_since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registered Since"
          },
          "age_years": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Age Years"
          },
          "sbi_main": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sbi Main"
          },
          "nace_main": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nace Main"
          },
          "employees": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Employees"
          },
          "registered_address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RegisteredAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "address_shielded": {
            "type": "boolean",
            "title": "Address Shielded",
            "default": false
          },
          "address_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address Match"
          },
          "profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyProfile"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "registered"
        ],
        "title": "CompanyBlock"
      },
      "CompanyProfile": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "active",
              "stopped"
            ],
            "title": "Status"
          },
          "stopped_on": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stopped On",
            "description": "ISO date the business stopped, when it has"
          },
          "headline": {
            "type": "string",
            "title": "Headline"
          },
          "industry": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Industry"
              },
              {
                "type": "null"
              }
            ]
          },
          "other_activities": {
            "items": {
              "$ref": "#/components/schemas/Industry"
            },
            "type": "array",
            "title": "Other Activities",
            "default": []
          },
          "employees": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Employees"
              },
              {
                "type": "null"
              }
            ]
          },
          "branches": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Branches"
              },
              {
                "type": "null"
              }
            ],
            "description": "Always null: branch counts are not in the KVK basisprofiel and need a second paid request."
          },
          "kvk_non_mailing": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Non Mailing",
            "description": "True when the company asked KVK not to receive unsolicited marketing mail"
          },
          "statutory_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Statutory Name"
          },
          "trade_names": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Trade Names",
            "default": []
          },
          "extended_legal_form": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extended Legal Form"
          },
          "websites": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Websites",
            "default": []
          },
          "lines": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Lines",
            "default": []
          },
          "personal_data_withheld": {
            "type": "boolean",
            "title": "Personal Data Withheld",
            "description": "True for a sole trader or other natural-person form: its personal register data is not returned",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status",
          "headline"
        ],
        "title": "CompanyProfile",
        "description": "What the KVK register says about the company, in fields and in plain lines."
      },
      "CompanyWebsite": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "found",
              "not_found",
              "skipped",
              "timeout",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "Why no website was found. None when found. discovery_disabled: the step is off. natural_person: not a legal person in the register, so nothing is read. no_number: no register number to cache it under. no_candidate: no domain to try (no register email domain and no usable name). not_confirmed: no site tried showed the company number or the company name at its registered address. site_unreadable or deadline: a site did not answer in time (timeout). Any other value is the error's type (error)."
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain",
            "description": "The confirmed site, a bare domain."
          },
          "method": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "register_email",
                  "name"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Method",
            "description": "register_email: the domain of the email address the register lists. name: a domain built from the company name or a trade name."
          },
          "confirmed_by": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "number",
                  "name_address"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Confirmed By",
            "description": "number: a page shows the company or VAT number. name_address: a page shows the company name at its registered address."
          },
          "number_on_site": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number On Site",
            "description": "Whether a page shows the company or VAT number."
          },
          "trading_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trading Name",
            "description": "The name the site gives the company, when it differs from the legal name."
          },
          "mx": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ok",
                  "no_mx",
                  "lookup_failed"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Mx",
            "description": "Whether the found domain receives email (an MX record)."
          },
          "checked_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checked At"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "CompanyWebsite",
        "description": "The company's own website, found when the register and the lead give none,\nand confirmed by the site itself (an unconfirmed site is never returned)."
      },
      "ComplianceSourceStatus": {
        "properties": {
          "source_id": {
            "type": "string",
            "title": "Source Id"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "jurisdiction": {
            "type": "string",
            "title": "Jurisdiction"
          },
          "source_type": {
            "type": "string",
            "title": "Source Type"
          },
          "circuit_state": {
            "type": "string",
            "title": "Circuit State",
            "default": "closed"
          },
          "last_fetch_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Fetch At"
          },
          "content_hash": {
            "type": "string",
            "title": "Content Hash",
            "default": ""
          },
          "last_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Status"
          },
          "last_success_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Success At"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "source_id",
          "name",
          "jurisdiction",
          "source_type"
        ],
        "title": "ComplianceSourceStatus",
        "description": "Health status of a regulatory source."
      },
      "CorrelationLink": {
        "properties": {
          "kind": {
            "type": "string",
            "title": "Kind"
          },
          "value_display": {
            "type": "string",
            "title": "Value Display"
          },
          "seen_with_report_id": {
            "type": "string",
            "title": "Seen With Report Id"
          },
          "seen_at": {
            "type": "string",
            "title": "Seen At"
          },
          "scope": {
            "type": "string",
            "const": "workspace_reports",
            "title": "Scope",
            "default": "workspace_reports"
          }
        },
        "type": "object",
        "required": [
          "kind",
          "value_display",
          "seen_with_report_id",
          "seen_at"
        ],
        "title": "CorrelationLink"
      },
      "Correlations": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "scope_note": {
            "type": "string",
            "title": "Scope Note"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/CorrelationLink"
            },
            "type": "array",
            "title": "Links"
          }
        },
        "type": "object",
        "required": [
          "status",
          "scope_note"
        ],
        "title": "Correlations"
      },
      "CreditReportResult": {
        "properties": {
          "screened": {
            "type": "boolean",
            "title": "Screened",
            "description": "True when the provider was actually queried"
          },
          "applicable": {
            "type": "boolean",
            "title": "Applicable",
            "description": "False when `country` has no registered provider (Italy only today) or no credit_report_identifier was supplied -- a different fact from a clean negative, and never to be read as one"
          },
          "risk_score": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Risk Score",
            "description": "Normalised verdict: green, yellow, red, or unknown; None when not applicable"
          },
          "risk_band_available": {
            "type": "boolean",
            "title": "Risk Band Available",
            "description": "True when the provider returned an assessment rather than grey/ND",
            "default": false
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Provider",
            "description": "Identifier of the provider queried; None when not applicable"
          },
          "country": {
            "type": "string",
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country that was requested"
          },
          "organization_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organization Name",
            "description": "Company name as held by the provider"
          },
          "identifier_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Identifier Type",
            "description": "Which identifier resolved the lookup: vat, tax or company_id"
          },
          "retrieved_at": {
            "type": "string",
            "title": "Retrieved At",
            "description": "ISO 8601 UTC timestamp of the query"
          }
        },
        "type": "object",
        "required": [
          "screened",
          "applicable",
          "country",
          "retrieved_at"
        ],
        "title": "CreditReportResult",
        "description": "Result of the `credit_report` source, sold on the `credit` deep-check tier. `screened` is never False while `applicable` is True.\n\nMirrors InsolvencyRecordsResult, not AdverseMediaResult: coverage is a single\ncountry (Italy), so \"we do not cover this country\" is a 200 with\n`applicable: false` from app/services/credit_report.py, the same pattern the\ninsolvency register uses for non-NL -- never a raise, because that would be a\npaid 503 for a caller who explicitly opted into this tier. A supported country\nwhose screen fails for any other reason (unset key, vendor outage, unparseable\nverdict) still raises CreditReportUnavailable, and the router turns that into a\n503 so the payment is never settled.\n\nA green score is the provider's assessment of the company at query time, not a\nguarantee of solvency and not a recommendation to extend credit. `risk_score` is\na normalised value from a closed set (green / yellow / red / unknown), not the raw\nvendor string, and is None exactly when `applicable` is False; `risk_band_available`\nis False when the provider declined to assess (its documented grey/ND answer, e.g.\na closed company), which is a different fact from a low-risk verdict."
      },
      "CustomerUsageResponse": {
        "properties": {
          "period": {
            "type": "string",
            "title": "Period",
            "description": "Usage period"
          },
          "period_start": {
            "type": "string",
            "format": "date-time",
            "title": "Period Start",
            "description": "Period start timestamp"
          },
          "period_end": {
            "type": "string",
            "format": "date-time",
            "title": "Period End",
            "description": "Period end timestamp"
          },
          "tier": {
            "type": "string",
            "title": "Tier",
            "description": "Customer pricing tier"
          },
          "quota": {
            "$ref": "#/components/schemas/UsageQuota",
            "description": "Quota information"
          },
          "calls": {
            "$ref": "#/components/schemas/UsageCalls",
            "description": "Call statistics"
          },
          "performance": {
            "$ref": "#/components/schemas/UsagePerformance",
            "description": "Performance metrics"
          },
          "cost": {
            "$ref": "#/components/schemas/UsageCost",
            "description": "Cost breakdown"
          },
          "request_id": {
            "type": "string",
            "title": "Request Id",
            "description": "Request tracking ID"
          }
        },
        "type": "object",
        "required": [
          "period",
          "period_start",
          "period_end",
          "tier",
          "quota",
          "calls",
          "performance",
          "cost",
          "request_id"
        ],
        "title": "CustomerUsageResponse",
        "description": "Complete usage response for customer dashboard (DYN-273)."
      },
      "DataCategory": {
        "type": "string",
        "enum": [
          "usage_logs",
          "trust_scores",
          "audit_trail",
          "api_keys",
          "webhook_deliveries",
          "funnel_telemetry",
          "check_records",
          "entity_reports",
          "sales_leads",
          "waitlist_signups",
          "abandoned_signups",
          "lead_lists",
          "report_email_settings",
          "chat_transcripts",
          "chat_tool_audit",
          "chat_turn_stats",
          "marketing_consent",
          "email_events",
          "email_suppressions"
        ],
        "title": "DataCategory"
      },
      "DeepCheckRequest": {
        "properties": {
          "entity_name": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Entity Name",
            "description": "Legal entity or person name"
          },
          "country": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code"
          },
          "kvk_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Number",
            "description": "Dutch KVK number (8 digits); enables an exact insolvency-register lookup and, while KVK_REGISTER_FLAGS_ENABLED is on, the KVK register flags lookup"
          },
          "credit_report_identifier": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Credit Report Identifier",
            "description": "VAT number, tax code or company ID for the `credit` tier's provider (Italy only today); without it the tier still runs but credit_report comes back applicable: false, same as an unsupported country"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "entity_name",
          "country"
        ],
        "title": "DeepCheckRequest",
        "description": "Request for POST /v1/entity/deep-check.\n\nTakes entity fields rather than an ``entity_id`` from a prior check: the audit\ntrail is keyed by sha256(entity_name) and is one-way, so an id could not be\nresolved back to the name the screens have to query. ``kvk_number`` is optional\nand consulted by the insolvency source: the Centraal\nInsolventieregister keys ``searchUndertaking`` on the KvK number, which is an\nexact lookup where a trade-name search is a fuzzy one. While\nKVK_REGISTER_FLAGS_ENABLED is on, it also drives the KVK register flags lookup. ``credit_report_identifier``\nis only consulted by the `credit` tier's source: Openapi.com's Italian\ncredit-score lookup keys on a VAT number, tax code or company ID rather than a\nname, and reports back in `identifier_type` which one it matched."
      },
      "DeepCheckResponse": {
        "properties": {
          "entity_name": {
            "type": "string",
            "title": "Entity Name"
          },
          "country": {
            "type": "string",
            "title": "Country"
          },
          "quality": {
            "type": "string",
            "title": "Quality",
            "description": "deep (fresh), extended (enhanced) or credit; see DEEP_CHECK_TIER_NAMES. `credit` only resolves while OPENAPI_CREDIT_API_KEY is configured.",
            "default": "deep"
          },
          "sources_returned": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Sources Returned",
            "description": "Sources actually run; equals EnhancedCheckHint.adds"
          },
          "pep_extended": {
            "$ref": "#/components/schemas/PepScreenResult"
          },
          "adverse_media": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AdverseMediaResult"
              },
              {
                "type": "null"
              }
            ],
            "description": "Populated only on a tier whose adds include `adverse_media`. None means the tier did not include it -- never that a screen ran and found nothing."
          },
          "insolvency_records": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InsolvencyRecordsResult"
              },
              {
                "type": "null"
              }
            ],
            "description": "Dutch Centraal Insolventieregister screen; on every tier. `applicable: false` (never null) when `country` is not NL."
          },
          "kvk_register_flags": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/KvkRegisterFlagsResult"
              },
              {
                "type": "null"
              }
            ],
            "description": "KVK's own register flags beside the insolvency register. None while KVK_REGISTER_FLAGS_ENABLED is off, for a country other than NL, or without kvk_number."
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array",
            "title": "Findings",
            "description": "Actions from the KVK register flags. One finding when the two registers disagree"
          },
          "credit_report": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CreditReportResult"
              },
              {
                "type": "null"
              }
            ],
            "description": "Populated only on the `credit` tier. None means the tier did not include it -- never that a screen ran and found no credit risk. `applicable: false` inside it (never omission) means the tier was requested but the country has no provider or no identifier was sent."
          },
          "processing_time_ms": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Processing Time Ms"
          },
          "disclaimers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Disclaimers"
          },
          "sandbox": {
            "type": "boolean",
            "title": "Sandbox",
            "default": false
          },
          "version": {
            "type": "string",
            "title": "Version",
            "default": "1.0"
          }
        },
        "type": "object",
        "required": [
          "entity_name",
          "country",
          "sources_returned",
          "pep_extended",
          "processing_time_ms"
        ],
        "title": "DeepCheckResponse",
        "description": "Response from /v1/entity/deep-check.\n\n``sources_returned`` is built from payment.DEEP_CHECK_TIER_ADDS[tier] -- the same\ntable enhanced_check_hint advertises -- so what was promised and what was delivered\nare one value. A name may only join that table together with the field that fills\nit on that tier."
      },
      "DeepCheckTierOffer": {
        "properties": {
          "quality": {
            "type": "string",
            "title": "Quality",
            "description": "deep, extended or credit"
          },
          "response_quality": {
            "type": "string",
            "title": "Response Quality",
            "description": "X-Response-Quality value that buys this tier (fresh, enhanced or credit)"
          },
          "price_usdc": {
            "type": "number",
            "minimum": 0.0,
            "title": "Price Usdc",
            "description": "Cost via x402 payment"
          },
          "adds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Adds",
            "description": "Sources this tier actually returns"
          }
        },
        "type": "object",
        "required": [
          "quality",
          "response_quality",
          "price_usdc",
          "adds"
        ],
        "title": "DeepCheckTierOffer",
        "description": "One purchasable /v1/entity/deep-check tier, as the upsell hint advertises it."
      },
      "DiscoveredIdentifier": {
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "kvk_number",
              "kbo_number",
              "vat_number"
            ],
            "title": "Kind"
          },
          "value": {
            "type": "string",
            "title": "Value",
            "examples": [
              "24330087",
              "0809.309.701",
              "NL810433941B01"
            ]
          },
          "found_on_url": {
            "type": "string",
            "title": "Found On Url"
          },
          "status": {
            "type": "string",
            "enum": [
              "confirmed",
              "other_company",
              "unverified"
            ],
            "title": "Status"
          },
          "registered_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registered Name"
          },
          "confirmed_by": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "kvk",
                  "kbo",
                  "vies"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Confirmed By"
          },
          "name_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name Match"
          },
          "used": {
            "type": "boolean",
            "title": "Used",
            "default": false
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "kind",
          "value",
          "found_on_url",
          "status"
        ],
        "title": "DiscoveredIdentifier",
        "description": "One number found on the website, and what its register says about it."
      },
      "DomainComponent": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error",
              "not_requested"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "probes": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DomainProbes"
              },
              {
                "type": "null"
              }
            ]
          },
          "domain_age_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Age Days"
          },
          "domain_expires_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Expires At"
          },
          "has_mx": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Mx"
          },
          "has_spf": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Spf"
          },
          "has_dmarc": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Dmarc"
          },
          "ssl_valid": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ssl Valid"
          },
          "ssl_issuer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ssl Issuer"
          },
          "web_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Web Score"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "DomainComponent",
        "description": "WHOIS (RDAP) age, DNS mail records and TLS certificate of the domain the caller gave.\n\nReported only; never read by the verdict. A field whose probe got no answer is None,\nnever False."
      },
      "DomainProbes": {
        "properties": {
          "whois": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable"
            ],
            "title": "Whois"
          },
          "dns": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable"
            ],
            "title": "Dns"
          },
          "ssl": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable"
            ],
            "title": "Ssl"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "whois",
          "dns",
          "ssl"
        ],
        "title": "DomainProbes",
        "description": "Each probe's own status: \"unavailable\" when it got no answer."
      },
      "DomainSignals": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "fetched_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fetched At"
          },
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "domain_age_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Age Days"
          },
          "has_mx": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Mx"
          },
          "has_spf": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Spf"
          },
          "has_dmarc": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Dmarc"
          },
          "ssl_valid": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ssl Valid"
          },
          "ssl_issuer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ssl Issuer"
          },
          "registered_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registered At"
          }
        },
        "type": "object",
        "required": [
          "status",
          "domain"
        ],
        "title": "DomainSignals"
      },
      "DormantShell": {
        "properties": {
          "score": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Score"
          },
          "signals": {
            "items": {
              "$ref": "#/components/schemas/ShellSignal"
            },
            "type": "array",
            "title": "Signals",
            "description": "The signals that fired, in plain words"
          },
          "unknown": {
            "items": {
              "type": "string",
              "enum": [
                "no_staff",
                "holding_activity",
                "no_website",
                "no_mail_server",
                "recently_registered",
                "no_annual_accounts"
              ]
            },
            "type": "array",
            "title": "Unknown",
            "description": "Signals with no data to decide on; they add nothing"
          },
          "flag_at": {
            "type": "integer",
            "title": "Flag At",
            "description": "The score at which the dormant-shell finding is raised (and Lead Verify's dormant_shell_signals flag)",
            "default": 50
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "score"
        ],
        "title": "DormantShell",
        "description": "A weighted 0-100 dormant-shell score. Unknown data never adds to it."
      },
      "EmailBlock": {
        "properties": {
          "checked": {
            "type": "boolean",
            "title": "Checked"
          },
          "has_mx": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Mx"
          },
          "disposable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disposable"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "checked"
        ],
        "title": "EmailBlock"
      },
      "EmployeeRange": {
        "properties": {
          "min": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Min",
            "examples": [
              10
            ]
          },
          "max": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max",
            "examples": [
              50
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "EmployeeRange",
        "description": "An inclusive employee range; at least one end."
      },
      "Employees": {
        "properties": {
          "total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total"
          },
          "full_time": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Full Time"
          },
          "part_time": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Part Time"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "Employees"
      },
      "EnhancedCheckHint": {
        "properties": {
          "endpoint": {
            "type": "string",
            "title": "Endpoint",
            "description": "API endpoint for enhanced check"
          },
          "quality": {
            "type": "string",
            "title": "Quality",
            "description": "deep or extended"
          },
          "price_usdc": {
            "type": "number",
            "minimum": 0.0,
            "title": "Price Usdc",
            "description": "Cost via x402 payment"
          },
          "adds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Adds",
            "description": "Additional data sources included"
          },
          "tiers": {
            "items": {
              "$ref": "#/components/schemas/DeepCheckTierOffer"
            },
            "type": "array",
            "title": "Tiers",
            "description": "Every tier the endpoint sells; the top-level fields are the recommended one"
          },
          "trigger_reason": {
            "type": "string",
            "title": "Trigger Reason",
            "description": "Why this check was suggested"
          }
        },
        "type": "object",
        "required": [
          "endpoint",
          "quality",
          "price_usdc",
          "adds",
          "trigger_reason"
        ],
        "title": "EnhancedCheckHint",
        "description": "Upsell hint: suggests a deeper check endpoint when trust is ambiguous."
      },
      "EntityCheckRequest": {
        "properties": {
          "entity_name": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Entity Name",
            "description": "Legal entity name"
          },
          "country": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code"
          },
          "kvk_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Number",
            "description": "Dutch KVK number (8 digits)"
          },
          "cbe_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cbe Number",
            "description": "Belgian CBE number: 0XXX.XXX.XXX, or the same 10 digits without dots"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 253
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain",
            "description": "Entity website domain"
          },
          "iban": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 34
              },
              {
                "type": "null"
              }
            ],
            "title": "Iban",
            "description": "IBAN for financial validation"
          },
          "vat_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Vat Number",
            "description": "EU VAT number"
          },
          "wallet_address": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Address",
            "description": "Crypto wallet address (format check only; no on-chain lookup)"
          },
          "wallet_chain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Chain",
            "description": "Blockchain the address is checked against (eth, base, polygon, arbitrum, btc, sol). Defaults to eth when omitted, so send btc or sol with a Bitcoin or Solana address"
          },
          "target_industries": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Industries",
            "description": "Ideal-customer industries: SBI/NACE code prefixes (\"62\", \"64.20\") or plain words matched as whole words against the register's activity descriptions. Information only: never changes the score.",
            "examples": [
              [
                "62",
                "software"
              ]
            ]
          },
          "target_size": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmployeeRange"
              },
              {
                "type": "null"
              }
            ],
            "description": "Ideal-customer employee range, both ends inclusive. Information only."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "entity_name",
          "country"
        ],
        "title": "EntityCheckRequest",
        "description": "Full entity check request - always runs country risk and sanctions; runs each other data source whose identifier is supplied (up to 8 total).\n\n`entity_name` and `country` are required; identifiers (kvk_number, cbe_number, domain, iban, vat_number, wallet_address) are optional and raise confidence."
      },
      "EntityReport": {
        "properties": {
          "report_id": {
            "type": "string",
            "title": "Report Id"
          },
          "check_id": {
            "type": "string",
            "title": "Check Id"
          },
          "schema_version": {
            "type": "string",
            "title": "Schema Version",
            "default": "1"
          },
          "created_at": {
            "type": "string",
            "title": "Created At"
          },
          "document_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Document Number"
          },
          "entity": {
            "$ref": "#/components/schemas/ReportEntity"
          },
          "identity": {
            "items": {
              "$ref": "#/components/schemas/IdentityRecord"
            },
            "type": "array",
            "title": "Identity"
          },
          "identification": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Identification"
              },
              {
                "type": "null"
              }
            ]
          },
          "sanctions": {
            "$ref": "#/components/schemas/SanctionsScreen"
          },
          "pep": {
            "$ref": "#/components/schemas/PepScreen"
          },
          "wallet": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WalletScreen"
              },
              {
                "type": "null"
              }
            ]
          },
          "domain": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DomainSignals"
              },
              {
                "type": "null"
              }
            ]
          },
          "financials": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FinancialsSection"
              },
              {
                "type": "null"
              }
            ]
          },
          "sector_comparison": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SectorComparison"
              },
              {
                "type": "null"
              }
            ]
          },
          "group_structure": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GroupStructure"
              },
              {
                "type": "null"
              }
            ]
          },
          "group_chain": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/GroupChain"
              },
              {
                "type": "null"
              }
            ]
          },
          "be_shareholders": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BeShareholders"
              },
              {
                "type": "null"
              }
            ]
          },
          "party_sanctions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PartySanctions"
              },
              {
                "type": "null"
              }
            ]
          },
          "be_accounts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BeAccountsSection"
              },
              {
                "type": "null"
              }
            ]
          },
          "website_phones": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ReportWebsitePhone"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Phones"
          },
          "website_phones_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Phones Reason"
          },
          "activity_evidence": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ActivityEvidence"
              },
              {
                "type": "null"
              }
            ]
          },
          "kbo_functions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReportKboFunctions"
              },
              {
                "type": "null"
              }
            ]
          },
          "entity_links": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReportEntityLinks"
              },
              {
                "type": "null"
              }
            ]
          },
          "company_website": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReportCompanyWebsite"
              },
              {
                "type": "null"
              }
            ]
          },
          "risk": {
            "$ref": "#/components/schemas/RiskSection"
          },
          "correlations": {
            "$ref": "#/components/schemas/Correlations"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array",
            "maxItems": 12,
            "title": "Findings"
          },
          "findings_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Findings Note"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/ReportSource"
            },
            "type": "array",
            "title": "Sources"
          },
          "attributions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Attributions"
          },
          "evidence": {
            "$ref": "#/components/schemas/Evidence"
          }
        },
        "type": "object",
        "required": [
          "report_id",
          "check_id",
          "created_at",
          "entity",
          "sanctions",
          "pep",
          "risk",
          "correlations",
          "evidence"
        ],
        "title": "EntityReport"
      },
      "EntityReportRequest": {
        "properties": {
          "check_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Check Id",
            "description": "Id of a check stored by an earlier /v1/reports/entity call"
          },
          "entity_name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Name"
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "kvk_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Number"
          },
          "cbe_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cbe Number"
          },
          "vat_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Vat Number"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 253
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "iban": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 34
              },
              {
                "type": "null"
              }
            ],
            "title": "Iban"
          },
          "wallet_address": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Address",
            "description": "Crypto wallet address (named wallet_address, as on /v1/entity/check)"
          },
          "wallet_chain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Chain"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "EntityReportRequest",
        "description": "Body of POST /v1/reports/entity.\n\nSend either ``check_id`` (rebuild from a check this store already holds) or\nidentifiers (``entity_name`` + ``country`` plus any of the optional ones),\nnever both. Identifier fields keep the names of POST /v1/entity/check."
      },
      "ErasureRequest": {
        "properties": {
          "entity_name": {
            "type": "string",
            "minLength": 1,
            "title": "Entity Name",
            "description": "Entity to erase"
          },
          "wallet_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Address",
            "description": "Also erase this wallet's verify_wallet screening records"
          },
          "reason": {
            "type": "string",
            "title": "Reason",
            "default": "GDPR Article 17 request"
          }
        },
        "type": "object",
        "required": [
          "entity_name"
        ],
        "title": "ErasureRequest"
      },
      "ErasureResponse": {
        "properties": {
          "request_id": {
            "type": "string",
            "title": "Request Id"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "default": "completed"
          },
          "categories_purged": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Categories Purged"
          },
          "records_deleted": {
            "type": "integer",
            "title": "Records Deleted"
          },
          "completed_at": {
            "type": "string",
            "format": "date-time",
            "title": "Completed At"
          },
          "notes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Notes"
          }
        },
        "type": "object",
        "required": [
          "request_id",
          "categories_purged",
          "records_deleted",
          "completed_at"
        ],
        "title": "ErasureResponse"
      },
      "ErrorResponse": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "default": "about:blank"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "type": "integer",
            "title": "Status"
          },
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detail"
          },
          "instance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instance"
          }
        },
        "type": "object",
        "required": [
          "title",
          "status"
        ],
        "title": "ErrorResponse",
        "description": "RFC 7807 Problem Details response."
      },
      "Evidence": {
        "properties": {
          "report_hash": {
            "type": "string",
            "title": "Report Hash"
          },
          "hash_algorithm": {
            "type": "string",
            "title": "Hash Algorithm",
            "default": "sha256"
          },
          "canonicalization": {
            "type": "string",
            "title": "Canonicalization",
            "default": "json.dumps(sort_keys=True, default=str) of the report without 'evidence'"
          },
          "audit_event_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Audit Event Id"
          }
        },
        "type": "object",
        "required": [
          "report_hash"
        ],
        "title": "Evidence"
      },
      "FeedbackRequest": {
        "properties": {
          "subject": {
            "type": "string",
            "title": "Subject",
            "description": "Entity name/domain/wallet that was scored"
          },
          "score_entry_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score Entry Id",
            "description": "Optional: specific score entry to give feedback on"
          },
          "feedback_type": {
            "type": "string",
            "enum": [
              "accurate",
              "too_high",
              "too_low",
              "incorrect"
            ],
            "title": "Feedback Type"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment",
            "description": "Optional feedback details"
          },
          "reporter_context": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reporter Context",
            "description": "Optional context about reporter (e.g., 'customer for 2 years')"
          }
        },
        "type": "object",
        "required": [
          "subject",
          "feedback_type"
        ],
        "title": "FeedbackRequest",
        "description": "User feedback on trust score accuracy."
      },
      "FeedbackResponse": {
        "properties": {
          "feedback_id": {
            "type": "string",
            "title": "Feedback Id"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "default": "received"
          },
          "message": {
            "type": "string",
            "title": "Message",
            "default": "Thank you for your feedback. It helps us improve trust scores."
          }
        },
        "type": "object",
        "title": "FeedbackResponse",
        "description": "Confirmation that feedback was received."
      },
      "FinancialsBenchmark": {
        "properties": {
          "fiscal_year": {
            "type": "integer",
            "title": "Fiscal Year"
          },
          "same_sector": {
            "type": "boolean",
            "title": "Same Sector"
          },
          "equity_ratio_pct": {
            "type": "integer",
            "title": "Equity Ratio Pct"
          },
          "direction": {
            "type": "string",
            "enum": [
              "lower",
              "higher"
            ],
            "title": "Direction"
          },
          "share": {
            "type": "integer",
            "enum": [
              50,
              75,
              90
            ],
            "title": "Share"
          }
        },
        "type": "object",
        "required": [
          "fiscal_year",
          "same_sector",
          "equity_ratio_pct",
          "direction",
          "share"
        ],
        "title": "FinancialsBenchmark",
        "description": "Where the filing's own-capital ratio sits among Dutch filings of the same\nyear (KVK open data, aggregates only). ``share`` percent of those companies have a\nhigher (direction \"lower\") or a lower (direction \"higher\") ratio; ``same_sector``\nis False when the comparison is with every Dutch company of the year."
      },
      "FinancialsSection": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "retrieved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved At"
          },
          "retrieved_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved Note"
          },
          "cache_age_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cache Age Days"
          },
          "has_filings": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Has Filings"
          },
          "financial_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Financial Year"
          },
          "adoption_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Adoption Date"
          },
          "sbi_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sbi Code"
          },
          "currency": {
            "type": "string",
            "title": "Currency",
            "default": "EUR"
          },
          "balance_sheet": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BalanceSheet"
              },
              {
                "type": "null"
              }
            ]
          },
          "income_statement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IncomeStatement"
              },
              {
                "type": "null"
              }
            ]
          },
          "consolidated": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consolidated"
          },
          "consolidated_balance_sheet": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BalanceSheet"
              },
              {
                "type": "null"
              }
            ]
          },
          "consolidated_income_statement": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IncomeStatement"
              },
              {
                "type": "null"
              }
            ]
          },
          "negative_equity": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Negative Equity"
          },
          "current_ratio": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Ratio"
          },
          "filing_age_years": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filing Age Years"
          },
          "benchmark": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FinancialsBenchmark"
              },
              {
                "type": "null"
              }
            ]
          },
          "income_details": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IncomeDetails"
              },
              {
                "type": "null"
              }
            ]
          },
          "consolidated_income_details": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IncomeDetails"
              },
              {
                "type": "null"
              }
            ]
          },
          "cash_flow": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CashFlow"
              },
              {
                "type": "null"
              }
            ]
          },
          "consolidated_cash_flow": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CashFlow"
              },
              {
                "type": "null"
              }
            ]
          },
          "filing_months_late": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filing Months Late"
          },
          "previous_year": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreviousYear"
              },
              {
                "type": "null"
              }
            ]
          },
          "derived_note": {
            "type": "string",
            "title": "Derived Note",
            "default": "negative_equity, current_ratio and filing_age_years are derived from the filing as inputs for your own assessment, not a credit rating"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "FinancialsSection",
        "description": "Financials (NL): the latest annual accounts filed with KVK.\n\n``has_filings`` is None whenever the source did not answer: an\n``unavailable`` source never reads as \"none filed\"."
      },
      "Finding": {
        "properties": {
          "action": {
            "type": "string",
            "minLength": 1,
            "title": "Action"
          },
          "why": {
            "type": "string",
            "minLength": 1,
            "title": "Why"
          },
          "expected_result": {
            "type": "string",
            "minLength": 1,
            "title": "Expected Result"
          }
        },
        "type": "object",
        "required": [
          "action",
          "why",
          "expected_result"
        ],
        "title": "Finding"
      },
      "GroupChain": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "not_found",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Summary"
          },
          "nearest": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nearest"
          },
          "top": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/GroupLink"
            },
            "type": "array",
            "maxItems": 12,
            "title": "Links"
          },
          "filing_year": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filing Year"
          },
          "filing_reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filing Reference"
          },
          "parents_screened": {
            "type": "boolean",
            "title": "Parents Screened",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "GroupChain",
        "description": "A Belgian company's group: the parent named in its NBB filing, chained up through GLEIF.\n\nRead from the latest filing's consolidated-accounts declaration and shareholder\nstructure, then each named parent's GLEIF direct and ultimate parent. The chain\nstops at the first missing link. Shown, never scored. ``parents_screened``\nis True only when every parent link named here was screened on the local\nsanctions lists (``EntityReport.party_sanctions``)."
      },
      "GroupLink": {
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "shareholder",
              "consolidating_parent",
              "direct_parent",
              "ultimate_parent"
            ],
            "title": "Role"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "country_text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country Text"
          },
          "enterprise_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enterprise Number"
          },
          "kvk_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Number"
          },
          "share_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Share Pct"
          },
          "scope": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "largest",
                  "smallest"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Scope"
          },
          "lei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lei"
          },
          "lei_registration_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lei Registration Status"
          },
          "lei_lapsed_since": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lei Lapsed Since"
          },
          "lookup": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lookup"
          },
          "lookup_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lookup Source"
          },
          "of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Of"
          },
          "source": {
            "type": "string",
            "title": "Source"
          }
        },
        "type": "object",
        "required": [
          "role",
          "source"
        ],
        "title": "GroupLink",
        "description": "One link of a group chain, with the source it comes from.\n\n``shareholder`` and ``consolidating_parent`` come from the NBB filing\n(``source`` \"NBB filing <year>\"), with ``lookup`` saying how the GLEIF search\nfor it went (\"ok\", \"no_lei\", \"ambiguous_name\", \"not_cached\", \"country_unknown\",\n...). ``direct_parent`` and ``ultimate_parent`` come from GLEIF and name the\nlink they belong to in ``of``."
      },
      "GroupStructure": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "not_found",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "lei": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lei"
          },
          "legal_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Name"
          },
          "entity_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Status"
          },
          "registration_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Status"
          },
          "next_renewal_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Next Renewal Date"
          },
          "matched_by": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "registration_number",
                  "legal_name"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Matched By"
          },
          "direct_parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParentEntity"
              },
              {
                "type": "null"
              }
            ]
          },
          "ultimate_parent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParentEntity"
              },
              {
                "type": "null"
              }
            ]
          },
          "retrieved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved At"
          },
          "cache_age_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cache Age Days"
          },
          "parents_screened": {
            "type": "boolean",
            "title": "Parents Screened",
            "default": false
          },
          "source": {
            "type": "string",
            "const": "gleif",
            "title": "Source",
            "default": "gleif"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "GroupStructure",
        "description": "Group structure from GLEIF Level 2 data.\n\n (Walker, 14 Oct 2026, replacing the 25 Sep decision): the report screens\nthe parents on the local sanctions lists while REPORT_PARTY_SANCTIONS_ENABLED is\non (``EntityReport.party_sanctions``). ``parents_screened`` is True only when\nevery parent named here was screened; GLEIF's own answer keeps it False. A\nparent is None when GLEIF holds no parent LEI record; on any status\nother than ``ok`` every entity field is None, never \"no parent\"."
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "HealthResponse": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status",
            "default": "ok"
          },
          "version": {
            "type": "string",
            "title": "Version"
          },
          "uptime_seconds": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Uptime Seconds",
            "description": "Seconds since API started"
          },
          "sources": {
            "additionalProperties": {
              "$ref": "#/components/schemas/SourceStatus"
            },
            "type": "object",
            "title": "Sources"
          },
          "degraded": {
            "type": "boolean",
            "title": "Degraded",
            "description": "True when an advertised source is not configured or a background job is stale. Separate from status, which stays ok while the service is up.",
            "default": false
          },
          "degraded_reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Degraded Reasons",
            "description": "Source names behind degraded (never job names, never values)"
          },
          "cache_sizes": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Cache Sizes",
            "description": "In-memory cache entry counts by service"
          }
        },
        "type": "object",
        "required": [
          "version",
          "uptime_seconds"
        ],
        "title": "HealthResponse",
        "description": "Health check response."
      },
      "IbanBlock": {
        "properties": {
          "checked": {
            "type": "boolean",
            "title": "Checked"
          },
          "valid": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "bank": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bank"
          },
          "bic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bic"
          },
          "last4": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last4"
          },
          "country_agreement": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country Agreement"
          },
          "holder_checked": {
            "type": "boolean",
            "const": false,
            "title": "Holder Checked",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "checked"
        ],
        "title": "IbanBlock"
      },
      "IcpFit": {
        "properties": {
          "industry": {
            "type": "string",
            "enum": [
              "match",
              "no_match",
              "unknown"
            ],
            "title": "Industry"
          },
          "size": {
            "type": "string",
            "enum": [
              "match",
              "no_match",
              "unknown"
            ],
            "title": "Size"
          },
          "industry_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Industry Source"
          },
          "size_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size Source"
          },
          "confirmed_elsewhere": {
            "type": "boolean",
            "title": "Confirmed Elsewhere",
            "description": "Always false: the register is the only layer that holds industry and size",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "industry",
          "size"
        ],
        "title": "IcpFit",
        "description": "The company against the caller's ideal-customer profile. Information only."
      },
      "Identification": {
        "properties": {
          "method": {
            "type": "string",
            "enum": [
              "given",
              "website"
            ],
            "title": "Method"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "correlation": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Correlation"
          },
          "discovered_identifiers": {
            "items": {
              "$ref": "#/components/schemas/DiscoveredIdentifier"
            },
            "type": "array",
            "title": "Discovered Identifiers"
          }
        },
        "type": "object",
        "required": [
          "method",
          "status"
        ],
        "title": "Identification",
        "description": "How the company was identified: from the numbers found on its own\nwebsite, each checked with its register. Absent when the customer gave a\nnumber or discovery was skipped; present for every other outcome, also\nwhen nothing was found or the read was refused, blocked, timed out or failed."
      },
      "IdentityComponent": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error",
              "not_requested"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "registry": {
            "type": "string",
            "const": "erc8004",
            "title": "Registry",
            "default": "erc8004"
          },
          "wallet_agent_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Wallet Agent Ids",
            "default": []
          },
          "agent_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Id"
          },
          "agent_registered": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Registered"
          },
          "agent_owner": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Owner"
          },
          "agent_wallet": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Wallet"
          },
          "wallet_controls_agent": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Controls Agent"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "IdentityComponent",
        "description": "ERC-8004 identity registration of the wallet, and of the given agent id."
      },
      "IdentityRecord": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "fetched_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fetched At"
          },
          "verified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verified"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "registration_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Registration Number"
          },
          "number_source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number Source"
          },
          "legal_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Status"
          },
          "founding_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Founding Date"
          },
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "bank_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bank Name"
          },
          "bic": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bic"
          },
          "iban_display": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Iban Display"
          },
          "nace_main": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nace Main"
          },
          "contacts": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contacts"
          },
          "contacts_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contacts Reason"
          },
          "data_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data Date"
          },
          "profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyProfile"
              },
              {
                "type": "null"
              }
            ]
          },
          "juridical_situation": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Juridical Situation"
          },
          "legal_form": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Form"
          },
          "activities": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Activities"
          },
          "places_of_business": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Places Of Business"
          },
          "establishments": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Establishments"
          }
        },
        "type": "object",
        "required": [
          "source",
          "status"
        ],
        "title": "IdentityRecord"
      },
      "IncomeDetails": {
        "properties": {
          "net_result_after_tax": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Net Result After Tax"
          },
          "financial_income_expenses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Financial Income Expenses"
          },
          "income_tax_expense": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Income Tax Expense"
          }
        },
        "type": "object",
        "title": "IncomeDetails",
        "description": "More profit-and-loss lines, whole euros, as filed."
      },
      "IncomeStatement": {
        "properties": {
          "gross_margin": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gross Margin"
          },
          "operating_result": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Operating Result"
          },
          "result_before_tax": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result Before Tax"
          },
          "result_after_tax": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result After Tax"
          },
          "employee_benefits_expenses": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Employee Benefits Expenses"
          }
        },
        "type": "object",
        "title": "IncomeStatement",
        "description": "Whole euros, as filed."
      },
      "Industry": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code",
            "description": "SBI code",
            "examples": [
              "01241"
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "KVK's own (Dutch) SBI description",
            "examples": [
              "Teelt van appels en peren"
            ]
          },
          "is_main": {
            "type": "boolean",
            "title": "Is Main"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "code",
          "is_main"
        ],
        "title": "Industry"
      },
      "InsolvencyPublication": {
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code",
            "description": "publicatieSoortCode from the register"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "description": "publicatieOmschrijving from the register"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date",
            "description": "publicatieDatum as published (YYYY-MM-DD)"
          }
        },
        "type": "object",
        "title": "InsolvencyPublication",
        "description": "The most recent publication on an insolvency case, as the register lists it."
      },
      "InsolvencyRecord": {
        "properties": {
          "publication_id": {
            "type": "string",
            "title": "Publication Id",
            "description": "publicatieKenmerk; the register's identifier for the case"
          },
          "insolvency_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Insolvency Number",
            "description": "insolventienummer, e.g. F.13/24/123"
          },
          "court": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Court",
            "description": "behandelendeInstantieCode: the court handling the case"
          },
          "subject_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject Type",
            "description": "legal_entity or natural_person, as the register classifies the insolvent party"
          },
          "latest_publication": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/InsolvencyPublication"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "required": [
          "publication_id"
        ],
        "title": "InsolvencyRecord",
        "description": "One insolvency case from the Centraal Insolventieregister.\n\nProjected from the getCase document to the fields we stand behind; the raw\ndocument is never echoed. Absent elements are None, not fabricated."
      },
      "InsolvencyRecordsResult": {
        "properties": {
          "screened": {
            "type": "boolean",
            "title": "Screened",
            "description": "True when the register was actually queried"
          },
          "applicable": {
            "type": "boolean",
            "title": "Applicable",
            "description": "False when `country` is outside the register's jurisdiction (NL)"
          },
          "jurisdiction": {
            "type": "string",
            "title": "Jurisdiction",
            "description": "Jurisdiction the register covers",
            "default": "NL"
          },
          "query_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Query By",
            "description": "kvk_number or name; None when not applicable"
          },
          "found": {
            "type": "boolean",
            "title": "Found",
            "description": "True when at least one insolvency proceeding was listed"
          },
          "match_count": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Match Count",
            "description": "Identifiers the search returned; None when the register reported too many to list"
          },
          "records": {
            "items": {
              "$ref": "#/components/schemas/InsolvencyRecord"
            },
            "type": "array",
            "title": "Records",
            "description": "Up to 5 expanded cases"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "description": "True when more cases exist than are returned"
          },
          "retrieved_at": {
            "type": "string",
            "title": "Retrieved At",
            "description": "ISO 8601 UTC timestamp of the query"
          }
        },
        "type": "object",
        "required": [
          "screened",
          "applicable",
          "found",
          "truncated",
          "retrieved_at"
        ],
        "title": "InsolvencyRecordsResult",
        "description": "Result of the `insolvency_records` source.\n\nUnlike PepScreenResult and AdverseMediaResult, `screened` CAN be False on a 200:\nthe register covers the Netherlands only, so for any other `country` the source\nis not consulted and the row says so with `applicable: false`. That is a\ndifferent fact from a clean negative and must never be read as one. When\n`applicable` is True, `screened` is always True: every other failure raises and\nthe router answers 503, so the caller is not charged.\n\nA negative result (`found: false`) means the register listed no insolvency\nproceeding for the KvK number or trade name at query time. Exception code 3\n(\"too many results\") is reported as `found: true, truncated: true,\nmatch_count: null` with no records: matches exist but the register will not\nlist them until the query is narrowed (send `kvk_number`).\n\nRegister conditions: no replica is kept and a successful screen is cached for at\nmost 24 hours (app/config.py::cache_insolvency_ttl), inside the six-month\ndestruction rule the subscription imposes."
      },
      "KYBCheckRequest": {
        "properties": {
          "entity_id": {
            "type": "string",
            "title": "Entity Id",
            "description": "Internal entity identifier"
          },
          "registration_number": {
            "type": "string",
            "title": "Registration Number",
            "description": "KVK (NL) or KBO/CBE (BE) company number. For other countries it is not checked against a company register; it is only used to find the company's LEI in GLEIF (group_structure)"
          },
          "country": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code"
          },
          "entity_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entity Name",
            "description": "Legal entity name (optional, used for sanctions)"
          },
          "vat_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vat Number",
            "description": "VAT number for VIES verification"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain",
            "description": "Company domain for web presence check"
          }
        },
        "type": "object",
        "required": [
          "entity_id",
          "registration_number",
          "country"
        ],
        "title": "KYBCheckRequest",
        "description": "Request model for KYB verification."
      },
      "KYBCheckResponse": {
        "properties": {
          "entity_id": {
            "type": "string",
            "title": "Entity Id",
            "description": "The entity_id sent in the request"
          },
          "registration_number": {
            "type": "string",
            "title": "Registration Number",
            "description": "The registration_number sent in the request"
          },
          "country": {
            "type": "string",
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code, upper case"
          },
          "verified": {
            "type": "boolean",
            "title": "Verified",
            "description": "True when trust_score is 60 or more. It is a score threshold, not a register match: it can be true when no company register was checked. See register_verified."
          },
          "register_verified": {
            "type": "boolean",
            "title": "Register Verified",
            "description": "True only when the company register in register_checked found the company (KVK for NL, KBO for BE). False when it did not, when the lookup failed, and when register_checked is null."
          },
          "register_checked": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "KVK",
                  "KBO"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Register Checked",
            "description": "The company register this check asked: KVK (NL) or KBO (BE). Null when none was asked: the country is not NL or BE, a BE check had no CBE number, or the register was busy and skipped."
          },
          "sanctions_flagged": {
            "type": "boolean",
            "title": "Sanctions Flagged",
            "description": "True when the sanctions screen matched the entity"
          },
          "kyb_status": {
            "type": "string",
            "title": "Kyb Status",
            "description": "One of approved, review_required, edd_required or rejected"
          },
          "trust_score": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Trust Score",
            "description": "0-100 trust score. Higher = more trustworthy"
          },
          "trust_level": {
            "type": "string",
            "title": "Trust Level",
            "description": "Trust level derived from trust_score"
          },
          "cluster": {
            "type": "string",
            "title": "Cluster",
            "description": "Entity cluster classification"
          },
          "recommendation": {
            "type": "string",
            "title": "Recommendation",
            "description": "Action recommendation"
          },
          "confidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "description": "Confidence in the assessment (0-1)"
          },
          "top_factors": {
            "items": {
              "$ref": "#/components/schemas/TopFactor"
            },
            "type": "array",
            "title": "Top Factors",
            "description": "Top factors behind the score"
          },
          "sources_checked": {
            "type": "integer",
            "title": "Sources Checked",
            "description": "Number of data sources that answered"
          },
          "processing_time_ms": {
            "type": "integer",
            "title": "Processing Time Ms",
            "description": "Time taken to produce the answer"
          },
          "risk_flags": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Risk Flags",
            "description": "Negative factors and register flags, as source: signal"
          },
          "correlations": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "Correlations",
            "description": "Cross-source correlation scores"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array",
            "title": "Findings",
            "description": "What to do about each correlation"
          },
          "group_structure": {
            "additionalProperties": true,
            "type": "object",
            "title": "Group Structure",
            "description": "LEI and parents from GLEIF; informational, never scored"
          },
          "group_chain": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group Chain",
            "description": "Belgian parent chain from the NBB filing; null otherwise"
          },
          "company_profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyProfile"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the KVK register says about the company; null when it has no record"
          },
          "response_quality": {
            "type": "string",
            "title": "Response Quality",
            "description": "The tier this answer was served at"
          },
          "disclaimers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Disclaimers",
            "description": "Notes about this answer, e.g. a retired tier"
          }
        },
        "type": "object",
        "required": [
          "entity_id",
          "registration_number",
          "country",
          "verified",
          "register_verified",
          "register_checked",
          "sanctions_flagged",
          "kyb_status",
          "trust_score",
          "trust_level",
          "cluster",
          "recommendation",
          "confidence",
          "top_factors",
          "sources_checked",
          "processing_time_ms",
          "risk_flags",
          "correlations",
          "findings",
          "group_structure",
          "group_chain",
          "company_profile",
          "response_quality",
          "disclaimers"
        ],
        "title": "KYBCheckResponse",
        "description": "Response body of POST /v1/kyb/check."
      },
      "KeyCreateRequest": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "minLength": 3,
            "title": "Email",
            "description": "Email address for key owner"
          },
          "tier": {
            "type": "string",
            "title": "Tier",
            "description": "Pricing tier",
            "default": "free"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "email"
        ],
        "title": "KeyCreateRequest",
        "description": "Request to create a new API key."
      },
      "KeyCreateResponse": {
        "properties": {
          "api_key": {
            "type": "string",
            "title": "Api Key",
            "description": "Plaintext API key (shown only once)"
          },
          "key_id": {
            "type": "string",
            "title": "Key Id",
            "description": "Key identifier (SHA-256 hash prefix)"
          },
          "tier": {
            "type": "string",
            "title": "Tier",
            "description": "Pricing tier"
          },
          "monthly_limit": {
            "type": "integer",
            "title": "Monthly Limit",
            "description": "Monthly request ceiling for this tier (an abuse cap, not prepaid calls)"
          }
        },
        "type": "object",
        "required": [
          "api_key",
          "key_id",
          "tier",
          "monthly_limit"
        ],
        "title": "KeyCreateResponse",
        "description": "Response after creating a new API key. Plaintext key shown only once."
      },
      "KeyTopupResponse": {
        "properties": {
          "key_id": {
            "type": "string",
            "title": "Key Id",
            "description": "Key identifier (SHA-256 hash prefix)"
          },
          "tier": {
            "type": "string",
            "title": "Tier",
            "description": "Tier label (unchanged by a top-up)"
          },
          "credited_usd": {
            "type": "number",
            "title": "Credited Usd",
            "description": "USD credited to the prepaid balance by this payment (1:1)"
          },
          "balance_usd": {
            "type": "number",
            "title": "Balance Usd",
            "description": "Prepaid balance after this credit"
          }
        },
        "type": "object",
        "required": [
          "key_id",
          "tier",
          "credited_usd",
          "balance_usd"
        ],
        "title": "KeyTopupResponse",
        "description": "Response after topping up a key's prepaid balance via x402."
      },
      "KeyUpgradeResponse": {
        "properties": {
          "key_id": {
            "type": "string",
            "title": "Key Id",
            "description": "Key identifier (SHA-256 hash prefix)"
          },
          "previous_tier": {
            "type": "string",
            "title": "Previous Tier",
            "description": "Tier label before this purchase"
          },
          "new_tier": {
            "type": "string",
            "title": "New Tier",
            "description": "Tier label after this purchase (never lower than before)"
          },
          "monthly_limit": {
            "type": "integer",
            "title": "Monthly Limit",
            "description": "Monthly request ceiling for the tier label (an abuse cap, not prepaid calls)"
          },
          "payment_amount_usdc": {
            "type": "number",
            "title": "Payment Amount Usdc",
            "description": "Amount paid in USDC"
          },
          "credited_usd": {
            "type": "number",
            "title": "Credited Usd",
            "description": "USD credited to the prepaid balance by this payment (1:1)"
          },
          "balance_usd": {
            "type": "number",
            "title": "Balance Usd",
            "description": "Prepaid balance after this credit"
          },
          "tier_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier Expires At",
            "description": "When the active Growth/Pro term ends (null without a term). The key then moves to the first queued term, or back to the tier it had before"
          },
          "queued_terms": {
            "items": {
              "$ref": "#/components/schemas/QueuedTerm"
            },
            "type": "array",
            "title": "Queued Terms",
            "description": "Terms bought during a higher active term (Growth during Pro), oldest first; each starts when the one ahead of it ends"
          }
        },
        "type": "object",
        "required": [
          "key_id",
          "previous_tier",
          "new_tier",
          "monthly_limit",
          "payment_amount_usdc",
          "credited_usd",
          "balance_usd"
        ],
        "title": "KeyUpgradeResponse",
        "description": "Response after buying prepaid balance via x402 on POST /v1/keys/upgrade/{tier}."
      },
      "KeyUsageResponse": {
        "properties": {
          "key_id": {
            "type": "string",
            "title": "Key Id",
            "description": "Key identifier (SHA-256 hash prefix)"
          },
          "tier": {
            "type": "string",
            "title": "Tier",
            "description": "Current pricing tier"
          },
          "rate_limit_per_minute": {
            "type": "integer",
            "title": "Rate Limit Per Minute",
            "description": "Real enforced burst cap: max requests per minute for this tier"
          },
          "rate_limit_per_day": {
            "type": "integer",
            "title": "Rate Limit Per Day",
            "description": "Real enforced cap: max requests per rolling 24h for this tier"
          },
          "monthly_usage": {
            "type": "integer",
            "title": "Monthly Usage",
            "description": "Requests this key made in the current calendar month (UTC), counted against monthly_limit."
          },
          "monthly_limit": {
            "type": "integer",
            "title": "Monthly Limit",
            "description": "Monthly request ceiling for this tier: an abuse cap enforced on key calls (429 when reached, resets on the first of the month UTC), not a number of prepaid calls. Calls paid per call with x402 are never refused by it."
          },
          "remaining": {
            "type": "integer",
            "title": "Remaining",
            "description": "Requests left before the monthly ceiling this calendar month"
          },
          "usage_percent": {
            "type": "number",
            "title": "Usage Percent",
            "description": "Percentage of the monthly ceiling used this calendar month (0-100)"
          },
          "balance_usd": {
            "type": "number",
            "title": "Balance Usd",
            "description": "Prepaid balance in USD; each priced call is debited at the price in the pricing table",
            "default": 0.0
          },
          "tier_expires_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier Expires At",
            "description": "When the active Growth/Pro term ends (null without a term, or with TIER_SUBSCRIPTION_ENABLED off). The key then moves to the first queued term, or back to the tier it had before"
          },
          "tier_queue": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/QueuedTerm"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tier Queue",
            "description": "Terms bought during a higher active term (Growth during Pro), oldest first, each with the time it starts (null when there are none)"
          },
          "watch_recheck_credits": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Watch Recheck Credits",
            "description": "Scheduled change-monitoring re-checks left, bought one-time by Growth and Pro purchases (one per re-check of one watched entry); null when the key never bought any"
          }
        },
        "type": "object",
        "required": [
          "key_id",
          "tier",
          "rate_limit_per_minute",
          "rate_limit_per_day",
          "monthly_usage",
          "monthly_limit",
          "remaining",
          "usage_percent"
        ],
        "title": "KeyUsageResponse",
        "description": "Response showing current API key usage, the tier's real enforced rate\nlimits, and prepaid balance.\n\nA later change moved pricing to a prepaid balance debited per call; the limits that\nactually throttle a caller day-to-day are the per-minute burst cap and the\nrolling 24h cap (app.middleware.rate_limit.TIER_RATE_LIMITS) -- not the\nmonthly_* fields below, which are a separate, much looser abuse ceiling\nthat a steady low-rate caller could in principle still cross once a month\neven while always under the per-minute/per-day caps."
      },
      "KvkRegisterFlagsResult": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "not_covered",
              "not_available",
              "not_applicable"
            ],
            "title": "Status"
          },
          "active": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Active",
            "description": "KVK `actief`: True for J, False for N. None unless status is ok"
          },
          "insolvency_code": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "FAIL",
                  "SSAN",
                  "SURS"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Insolvency Code",
            "description": "KVK `insolventieCode`. None when ok with no code, or not ok"
          },
          "insolvency_label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Insolvency Label",
            "description": "bankruptcy, debt restructuring or suspension of payments"
          },
          "legal_form_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Form Code",
            "description": "KVK `rechtsvormCode` (BV or NV)"
          },
          "retrieved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved At",
            "description": "ISO 8601 UTC time KVK gave this answer"
          },
          "from_store": {
            "type": "boolean",
            "title": "From Store",
            "description": "True when served from the 7-day store",
            "default": false
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error",
            "description": "Why the source did not answer, when not_available"
          },
          "attribution": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Attribution",
            "description": "CC BY 4.0 attribution, set when status is ok"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "KvkRegisterFlagsResult",
        "description": "KVK Open Dataset Basisbedrijfsgegevens register flags, BV and NV only.\n\n`not_covered` means KVK's dataset has no entry for the number (it holds BV and NV\nonly). It is not a clean result. `not_available` means the source did not answer\n(rate limit, timeout, KVK error). It is never \"not insolvent\". `not_applicable`\nmeans the kvk_number is not an 8-digit KVK number."
      },
      "LeadAddress": {
        "properties": {
          "street": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Street",
            "examples": [
              "Hizzaarderlaan"
            ]
          },
          "house_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "House Number",
            "examples": [
              "3A"
            ]
          },
          "postcode": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Postcode",
            "examples": [
              "8823 SJ"
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "City",
            "examples": [
              "Lollum"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "LeadAddress",
        "description": "The address the lead gave. Compared with the register, never returned."
      },
      "LeadCorrelations": {
        "properties": {
          "kvk_website_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Website Match"
          },
          "phone_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone Match"
          },
          "website_identifier_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Identifier Match"
          },
          "kbo_contact_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kbo Contact Match"
          },
          "kbo_vat_address_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kbo Vat Address Match"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "LeadCorrelations",
        "description": "Cross-checks that inform, never change the lead score."
      },
      "LeadVerifyRequest": {
        "properties": {
          "country": {
            "type": "string",
            "enum": [
              "NL",
              "BE"
            ],
            "title": "Country",
            "description": "Country of the company register: NL (KVK) or BE (KBO).",
            "examples": [
              "NL"
            ]
          },
          "company_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Number",
            "description": "8-digit KVK number (NL) or 10-digit KBO/CBE enterprise number (BE).",
            "examples": [
              "68750110"
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ],
            "title": "Name",
            "description": "Company name as the lead gave it. Required for NL without a company_number.",
            "examples": [
              "Test BV Donald"
            ]
          },
          "vat_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Vat Number",
            "description": "EU VAT number, checked with VIES.",
            "examples": [
              "NL123456789B01"
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 254
              },
              {
                "type": "null"
              }
            ],
            "title": "Email",
            "description": "Contact email; only its domain is checked (mail server, disposable).",
            "examples": [
              "sales@example.nl"
            ]
          },
          "domain": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 253
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain",
            "description": "Company website domain.",
            "examples": [
              "example.nl"
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LeadAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "Address the lead gave; compared with the registered address."
          },
          "iban": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 42
              },
              {
                "type": "null"
              }
            ],
            "title": "Iban",
            "description": "IBAN the lead gave; validated locally, never echoed (last 4 only).",
            "examples": [
              "NL91ABNA0417164300"
            ]
          },
          "phone": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone",
            "description": "Phone number the lead gave; compared with the numbers the company publishes, never echoed. Not accepted yet: a phone is rejected with 422 until website phone lookup is switched on.",
            "examples": [
              "+31 20 123 4567"
            ]
          },
          "target_industries": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array",
                "maxItems": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Target Industries",
            "description": "Ideal-customer industries: SBI/NACE code prefixes (\"62\", \"64.20\") or plain words matched as whole words against the register's activity descriptions. Information only: never changes the score.",
            "examples": [
              [
                "62",
                "software"
              ]
            ]
          },
          "target_size": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EmployeeRange"
              },
              {
                "type": "null"
              }
            ],
            "description": "Ideal-customer employee range, both ends inclusive. Information only."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "country"
        ],
        "title": "LeadVerifyRequest",
        "description": "One NL or BE lead: a company number or a name, plus whatever else is known."
      },
      "LeadVerifyResult": {
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "lead-verify-v1",
            "title": "Schema Version",
            "default": "lead-verify-v1"
          },
          "verdict": {
            "type": "string",
            "enum": [
              "real_active",
              "real_inactive",
              "not_found",
              "ambiguous",
              "unverifiable",
              "sanctioned"
            ],
            "title": "Verdict"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "const": "be_requires_number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "Why the verdict is what it is, when the verdict alone does not say. be_requires_number: a Belgian lead needs a company_number; Belgian companies cannot be looked up by name."
          },
          "lead_score": {
            "type": "integer",
            "title": "Lead Score"
          },
          "company": {
            "$ref": "#/components/schemas/CompanyBlock"
          },
          "vat": {
            "$ref": "#/components/schemas/VatBlock"
          },
          "iban": {
            "$ref": "#/components/schemas/IbanBlock"
          },
          "sanctions": {
            "$ref": "#/components/schemas/SanctionsBlock"
          },
          "email": {
            "$ref": "#/components/schemas/EmailBlock"
          },
          "flags": {
            "items": {
              "type": "string",
              "enum": [
                "name_mismatch",
                "address_mismatch",
                "iban_invalid",
                "iban_foreign",
                "vat_invalid",
                "vat_owner_mismatch",
                "no_mail_server",
                "disposable_email",
                "recently_registered",
                "inactive",
                "business_stopped",
                "dormant_shell_signals"
              ]
            },
            "type": "array",
            "title": "Flags"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array",
            "title": "Findings"
          },
          "correlations": {
            "$ref": "#/components/schemas/LeadCorrelations",
            "default": {}
          },
          "dormant_shell": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DormantShell"
              },
              {
                "type": "null"
              }
            ]
          },
          "icp_fit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IcpFit"
              },
              {
                "type": "null"
              }
            ]
          },
          "website_phones": {
            "items": {
              "$ref": "#/components/schemas/WebsitePhone"
            },
            "type": "array",
            "title": "Website Phones",
            "default": []
          },
          "website_phones_reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "website_phones_disabled",
                  "sole_trader_data_disabled",
                  "no_domain",
                  "free_mail_domain",
                  "refused",
                  "robots_disallowed",
                  "timeout",
                  "error"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Phones Reason",
            "description": "Why no website phone numbers were read. None when the website was read. website_phones_disabled: website phone lookup is off. sole_trader_data_disabled: the company is a sole trader or partnership, so its contact details are personal data and were not read for this business. no_domain: there is no company website to read. free_mail_domain: the only domain given is a free email provider. refused: the website does not allow it to be read. robots_disallowed: the website's robots.txt does not allow its contact pages to be read, so the phone was not checked. timeout: the website did not answer in time. error: the website could not be read."
          },
          "discovered_identifiers": {
            "items": {
              "$ref": "#/components/schemas/DiscoveredIdentifier"
            },
            "type": "array",
            "title": "Discovered Identifiers",
            "default": []
          },
          "identifier_discovery_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Identifier Discovery Reason"
          },
          "company_website": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyWebsite"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company's own website found when neither the register nor the lead gives one, read for its phone numbers (website_phones) once confirmed. null when the step did not run (a website was given or registered, or the lead is not a company in the register)."
          },
          "sources_checked": {
            "type": "integer",
            "title": "Sources Checked"
          },
          "checked_at": {
            "type": "string",
            "title": "Checked At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "verdict",
          "lead_score",
          "company",
          "vat",
          "iban",
          "sanctions",
          "email",
          "flags",
          "findings",
          "sources_checked",
          "checked_at"
        ],
        "title": "LeadVerifyResult",
        "description": "One verdict and a 0-100 lead score, with each check that went into it."
      },
      "LegalDocument": {
        "properties": {
          "document_type": {
            "type": "string",
            "enum": [
              "privacy_policy",
              "terms_of_service",
              "dpa"
            ],
            "title": "Document Type"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "version": {
            "type": "string",
            "title": "Version",
            "description": "Version id printed on the page, e.g. terms-2026-10-07"
          },
          "effective_date": {
            "type": "string",
            "format": "date-time",
            "title": "Effective Date"
          },
          "last_updated": {
            "type": "string",
            "format": "date-time",
            "title": "Last Updated"
          },
          "url": {
            "type": "string",
            "title": "Url",
            "description": "Canonical page with the full text"
          }
        },
        "type": "object",
        "required": [
          "document_type",
          "title",
          "version",
          "effective_date",
          "last_updated",
          "url"
        ],
        "title": "LegalDocument",
        "description": "Legal document (privacy policy, terms of service, or DPA).\n\nThe current version id and where to read it, not the text: the page at\n`url` is the only copy, so the API cannot drift from it."
      },
      "NotCachedResponse": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "default": "about:blank"
          },
          "title": {
            "type": "string",
            "title": "Title"
          },
          "status": {
            "type": "integer",
            "title": "Status"
          },
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detail"
          },
          "instance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instance"
          },
          "errorCode": {
            "type": "string",
            "title": "Errorcode",
            "default": "not_cached"
          },
          "retry": {
            "$ref": "#/components/schemas/NotCachedRetry"
          }
        },
        "type": "object",
        "required": [
          "title",
          "status",
          "retry"
        ],
        "title": "NotCachedResponse",
        "description": "The 404 main.py's not_cached handler returns (X-Response-Quality: cached\nwith no cached result). It carries errorCode and retry next to the RFC 7807 fields."
      },
      "NotCachedRetry": {
        "properties": {
          "header": {
            "type": "string",
            "title": "Header",
            "default": "X-Response-Quality"
          },
          "value": {
            "type": "string",
            "title": "Value",
            "default": "fresh"
          },
          "price_usdc": {
            "type": "number",
            "title": "Price Usdc"
          },
          "price_raw": {
            "type": "integer",
            "title": "Price Raw"
          }
        },
        "type": "object",
        "required": [
          "price_usdc",
          "price_raw"
        ],
        "title": "NotCachedRetry",
        "description": "How to retry a not_cached 404: the header, its value and the fresh price."
      },
      "ParentEntity": {
        "properties": {
          "lei": {
            "type": "string",
            "title": "Lei"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          }
        },
        "type": "object",
        "required": [
          "lei"
        ],
        "title": "ParentEntity"
      },
      "PartyHit": {
        "properties": {
          "list": {
            "type": "string",
            "title": "List"
          },
          "listed_name": {
            "type": "string",
            "title": "Listed Name"
          },
          "listed_on": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listed On"
          },
          "entry_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entry Id"
          }
        },
        "type": "object",
        "required": [
          "list",
          "listed_name"
        ],
        "title": "PartyHit",
        "description": "One listed entry a party's name matched. ``listed_name``, never\n``matched_name``: the MCP guardrails strip that key."
      },
      "PartySanctions": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "not_screened",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "screened_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Screened At"
          },
          "lists": {
            "items": {
              "$ref": "#/components/schemas/SanctionsList"
            },
            "type": "array",
            "title": "Lists"
          },
          "parties": {
            "items": {
              "$ref": "#/components/schemas/PartyScreen"
            },
            "type": "array",
            "maxItems": 60,
            "title": "Parties"
          },
          "not_screened_count": {
            "type": "integer",
            "title": "Not Screened Count",
            "default": 0
          },
          "cap": {
            "type": "integer",
            "title": "Cap",
            "default": 10
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "PartySanctions",
        "description": "Every shareholder and parent company the report names, screened against the local\nOFAC, EU and UN lists (, Walker 14 Oct 2026): the NBB shareholders and\nconsolidating parent, and the GLEIF direct and ultimate parents. The same exact,\nword-order key as /v1/sanctions/screen; no fuzzy match, no vendor call, no PEP.\nAt most ``cap`` names are screened, parents first; the rest stay listed as\n``not_screened``/``over_cap``. A party whose lists could not be read is\n``not_screened``, never clear. A party with a KBO or KVK number on the objection\nlist, or whose objection lookup failed, is ``not_screened``/``not_checked`` and takes\nno screening slot. A hit holds a PROCEED verdict at REVIEW."
      },
      "PartyScreen": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "spellings": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Spellings"
          },
          "roles": {
            "items": {
              "type": "string",
              "enum": [
                "shareholder",
                "consolidating_parent",
                "direct_parent",
                "ultimate_parent"
              ]
            },
            "type": "array",
            "title": "Roles"
          },
          "result": {
            "type": "string",
            "enum": [
              "clear",
              "hit",
              "not_screened"
            ],
            "title": "Result"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "hits": {
            "items": {
              "$ref": "#/components/schemas/PartyHit"
            },
            "type": "array",
            "maxItems": 25,
            "title": "Hits"
          }
        },
        "type": "object",
        "required": [
          "name",
          "result"
        ],
        "title": "PartyScreen",
        "description": "One shareholder or parent company the report names, screened once.\n``spellings``: every spelling that shares its screen key, never ``aliases`` (the MCP\nguardrails strip that key). ``reason`` says why a party was ``not_screened``:\n``lists_unavailable``, ``name_too_short``, ``over_cap`` or ``not_checked``.\n``not_checked``: the party carries a KBO or KVK number that is on the sole traders'\nobjection list, or the list could not be read (fail closed). One reason for both,\nso no answer tells an objection apart."
      },
      "PepScreen": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "screened_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Screened At"
          },
          "exposure": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exposure"
          },
          "matches": {
            "items": {
              "$ref": "#/components/schemas/app__models__report__PepMatch"
            },
            "type": "array",
            "title": "Matches"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "PepScreen"
      },
      "PepScreenResult": {
        "properties": {
          "screened": {
            "type": "boolean",
            "title": "Screened",
            "description": "True when OpenSanctions was actually queried"
          },
          "pep_exposure": {
            "type": "boolean",
            "title": "Pep Exposure",
            "description": "True when at least one role.pep/role.rca match cleared threshold"
          },
          "match_count": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Match Count"
          },
          "matches": {
            "items": {
              "$ref": "#/components/schemas/app__models__response__PepMatch"
            },
            "type": "array",
            "title": "Matches"
          },
          "truncated": {
            "type": "boolean",
            "title": "Truncated",
            "description": "True when matches were capped",
            "default": false
          },
          "retrieved_at": {
            "type": "string",
            "title": "Retrieved At",
            "description": "ISO 8601 UTC timestamp of the query"
          }
        },
        "type": "object",
        "required": [
          "screened",
          "pep_exposure",
          "match_count",
          "retrieved_at"
        ],
        "title": "PepScreenResult",
        "description": "Result of the `pep_extended` source. `screened` is never False on a 200.\n\nThere is no code path that returns this model without having queried\nOpenSanctions: app/services/pep.py raises rather than fabricating a clean screen,\nand the router turns that into a 503 so the payment is never settled."
      },
      "PreviousYear": {
        "properties": {
          "financial_year": {
            "type": "integer",
            "title": "Financial Year"
          },
          "equity": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Equity"
          },
          "result_after_tax": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result After Tax"
          },
          "consolidated_equity": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consolidated Equity"
          },
          "consolidated_result_after_tax": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consolidated Result After Tax"
          }
        },
        "type": "object",
        "required": [
          "financial_year"
        ],
        "title": "PreviousYear",
        "description": "The year before, from the KVK store; whole euros, as filed."
      },
      "ProviderRegistration": {
        "properties": {
          "provider_id": {
            "type": "string",
            "title": "Provider Id",
            "description": "Unique provider UUID"
          },
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Provider name"
          },
          "endpoint_url": {
            "type": "string",
            "title": "Endpoint Url",
            "description": "Provider API endpoint URL"
          },
          "supported_checks": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Supported Checks",
            "description": "List of validation check types supported"
          },
          "registered_at": {
            "type": "string",
            "format": "date-time",
            "title": "Registered At",
            "description": "Registration timestamp"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Provider status",
            "default": "active"
          },
          "trust_level": {
            "type": "string",
            "title": "Trust Level",
            "description": "Provider trust level",
            "default": "verified"
          }
        },
        "type": "object",
        "required": [
          "provider_id",
          "name",
          "endpoint_url",
          "supported_checks",
          "registered_at"
        ],
        "title": "ProviderRegistration",
        "description": "Validation provider registration."
      },
      "ProviderRegistrationRequest": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Provider name"
          },
          "endpoint_url": {
            "type": "string",
            "title": "Endpoint Url",
            "description": "Provider API endpoint URL"
          },
          "supported_checks": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Supported Checks",
            "description": "List of validation check types supported"
          }
        },
        "type": "object",
        "required": [
          "name",
          "endpoint_url",
          "supported_checks"
        ],
        "title": "ProviderRegistrationRequest",
        "description": "Request to register a validation provider."
      },
      "QueuedTerm": {
        "properties": {
          "tier": {
            "type": "string",
            "title": "Tier",
            "description": "Tier the key moves to when this term starts"
          },
          "starts_at": {
            "type": "string",
            "format": "date-time",
            "title": "Starts At",
            "description": "When this term starts (the term ahead of it ends)"
          }
        },
        "type": "object",
        "required": [
          "tier",
          "starts_at"
        ],
        "title": "QueuedTerm",
        "description": "A lower-tier term bought during a higher active term, waiting its turn."
      },
      "ReadinessScore": {
        "properties": {
          "entity_id": {
            "type": "string",
            "title": "Entity Id",
            "description": "Entity identifier"
          },
          "system_type": {
            "type": "string",
            "title": "System Type",
            "description": "AI system classification"
          },
          "risk_level": {
            "type": "string",
            "title": "Risk Level",
            "description": "EU AI Act risk level"
          },
          "readiness_score": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Readiness Score",
            "description": "Readiness percentage"
          },
          "completed_items": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Completed Items"
          },
          "total_items": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Total Items"
          },
          "gaps": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Gaps",
            "description": "Missing requirements"
          },
          "days_until_enforcement": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Days Until Enforcement",
            "description": "Days until the Annex III high-risk obligations apply on 2 December 2027 (Regulation (EU) 2026/1744), 0 once they apply"
          },
          "urgency": {
            "type": "string",
            "title": "Urgency",
            "description": "normal, high (180 days or less), critical (90 days or less), or in_force (the Annex III obligations already apply)"
          },
          "basis": {
            "type": "string",
            "title": "Basis",
            "description": "self_assessment: scored from the completed_items you sent",
            "default": "self_assessment"
          },
          "note": {
            "type": "string",
            "title": "Note",
            "default": "Self-assessment: the score counts the completed_items you sent against the 7 EU AI Act high-risk obligations. entity_id is your label; nothing is looked up about it."
          }
        },
        "type": "object",
        "required": [
          "entity_id",
          "system_type",
          "risk_level",
          "readiness_score",
          "completed_items",
          "total_items",
          "days_until_enforcement",
          "urgency"
        ],
        "title": "ReadinessScore",
        "description": "EU AI Act compliance readiness assessment."
      },
      "Recommendation": {
        "type": "string",
        "enum": [
          "proceed",
          "review",
          "enhanced_due_diligence",
          "block"
        ],
        "title": "Recommendation"
      },
      "RegisteredAddress": {
        "properties": {
          "street": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Street"
          },
          "house_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "House Number"
          },
          "postcode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Postcode"
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "City"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "title": "RegisteredAddress",
        "description": "The address in the register. City only when the register shields it."
      },
      "ReportCompanyWebsite": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "found",
              "not_found",
              "skipped",
              "timeout",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain"
          },
          "method": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "register_email",
                  "name"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Method"
          },
          "confirmed_by": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "number",
                  "name_address"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Confirmed By"
          },
          "number_on_site": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number On Site"
          },
          "trading_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trading Name"
          },
          "mx": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ok",
                  "no_mx",
                  "lookup_failed"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Mx"
          },
          "checked_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checked At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "ReportCompanyWebsite",
        "description": "The company's own website, found when the register and the request give\nnone, and confirmed by its number or its name at the registered address."
      },
      "ReportEntity": {
        "properties": {
          "entity_name": {
            "type": "string",
            "title": "Entity Name"
          },
          "country": {
            "type": "string",
            "title": "Country"
          }
        },
        "type": "object",
        "required": [
          "entity_name",
          "country"
        ],
        "title": "ReportEntity"
      },
      "ReportEntityLink": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "kind": {
            "type": "string",
            "enum": [
              "trades_as",
              "brand",
              "group_member"
            ],
            "title": "Kind"
          },
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address"
          },
          "site": {
            "type": "string",
            "title": "Site"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "evidence": {
            "type": "string",
            "enum": [
              "place_of_business_address",
              "registered_address",
              "register_phone",
              "register_email",
              "company_number",
              "domain_registrant",
              "group_site"
            ],
            "title": "Evidence"
          },
          "place_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Place Number"
          },
          "place_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Place Name"
          },
          "confidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name",
          "kind",
          "site",
          "evidence",
          "confidence"
        ],
        "title": "ReportEntityLink",
        "description": "One link the link check judged and the gate showed, with the evidence it\nrests on. ``evidence`` is a code; the view turns it into a source line.\n\nThis docstring is published in the API reference (the report routes declare\nEntityReport), so it names no internal engine (scripts/scan_sync_diff.py)."
      },
      "ReportEntityLinks": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "links": {
            "items": {
              "$ref": "#/components/schemas/ReportEntityLink"
            },
            "type": "array",
            "title": "Links"
          },
          "group_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group Name"
          },
          "group_site": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Group Site"
          },
          "place_checks": {
            "items": {
              "$ref": "#/components/schemas/ReportPlaceCheck"
            },
            "type": "array",
            "title": "Place Checks"
          },
          "fetched_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fetched At"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "ReportEntityLinks",
        "description": "What the company trades as and the group it belongs to, from the websites\nthe register lists, judged by the link check (lg-entity-link). ``links`` are the\nshown links only: a name alone never links."
      },
      "ReportFunction": {
        "properties": {
          "role": {
            "type": "string",
            "title": "Role",
            "examples": [
              "Bestuurder"
            ]
          },
          "name": {
            "type": "string",
            "title": "Name",
            "examples": [
              "Jan Janssens"
            ]
          },
          "given": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Given",
            "description": "A natural person's given name(s) as printed; None for a legal person."
          },
          "since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Since",
            "description": "ISO date; None when the page's date is unreadable."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "role",
          "name"
        ],
        "title": "ReportFunction",
        "description": "One line of the register's \"Functies\" block, as printed there."
      },
      "ReportKboFunctions": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "functions": {
            "items": {
              "$ref": "#/components/schemas/ReportFunction"
            },
            "type": "array",
            "title": "Functions"
          },
          "register_phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Register Phone"
          },
          "register_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Register Email"
          },
          "register_website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Register Website"
          },
          "retrieved_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrieved At"
          },
          "register_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Register Date",
            "description": "The page's own 'state of the KBO database' date."
          },
          "legal_form": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Form"
          },
          "legal_form_since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Form Since"
          },
          "legal_situation": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Situation"
          },
          "legal_situation_since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Legal Situation Since"
          },
          "address_since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address Since"
          },
          "vat_since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vat Since"
          },
          "employer_since": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Employer Since"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "ReportKboFunctions",
        "description": "The people and contact lines read from the company's public KBO search page\nat check time. ``status`` ok: ``functions`` is the whole \"Functies\" block ([] = the\nregister lists none). Anything else: no name, never a stale or guessed one."
      },
      "ReportPlaceCheck": {
        "properties": {
          "number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Number"
          },
          "place_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Place Name"
          },
          "address_result": {
            "type": "string",
            "enum": [
              "match",
              "no_match"
            ],
            "title": "Address Result"
          },
          "website_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Website Name"
          },
          "name_result": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "match",
                  "differs"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Name Result"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "address_result"
        ],
        "title": "ReportPlaceCheck",
        "description": "One place of business the register lists, against the websites it lists.\n``name_result`` only when the address matched."
      },
      "ReportSource": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "fetched_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fetched At"
          },
          "latency_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latency Ms"
          }
        },
        "type": "object",
        "required": [
          "source",
          "status"
        ],
        "title": "ReportSource"
      },
      "ReportWebsitePhone": {
        "properties": {
          "number": {
            "type": "string",
            "title": "Number",
            "description": "E.164",
            "examples": [
              "+3220000000"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "landline",
              "mobile",
              "freephone"
            ],
            "title": "Type"
          },
          "found_on_url": {
            "type": "string",
            "title": "Found On Url"
          },
          "retrieved_at": {
            "type": "string",
            "title": "Retrieved At"
          },
          "source": {
            "type": "string",
            "const": "website",
            "title": "Source",
            "default": "website"
          },
          "source_label": {
            "type": "string",
            "title": "Source Label",
            "examples": [
              "on example.com, contact page"
            ]
          },
          "page_kind": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "home",
                  "company_details",
                  "contact",
                  "about"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Kind"
          },
          "register_number_on_page": {
            "type": "boolean",
            "title": "Register Number On Page",
            "default": false
          },
          "whatsapp": {
            "type": "boolean",
            "title": "Whatsapp",
            "description": "The site links this number on wa.me.",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "number",
          "type",
          "found_on_url",
          "retrieved_at",
          "source_label"
        ],
        "title": "ReportWebsitePhone",
        "description": "A phone number the company publishes on its own website, read as\nlead verify reads it (, ``models.lead_verify.WebsitePhone``), plus whether\nthe same site links it to WhatsApp. The company's number, never a person's."
      },
      "ReputationComponent": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error",
              "not_requested"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "note": {
            "type": "string",
            "title": "Note"
          },
          "agents": {
            "items": {
              "$ref": "#/components/schemas/AgentReputation"
            },
            "type": "array",
            "title": "Agents",
            "default": []
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status",
          "note"
        ],
        "title": "ReputationComponent",
        "description": "Open ERC-8004 feedback. Reported only; never read by the verdict."
      },
      "ReputationScoreRequest": {
        "properties": {
          "entity_name": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Entity Name"
          },
          "country": {
            "type": "string",
            "maxLength": 2,
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code",
            "default": ""
          },
          "trust_score": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100.0,
                "minimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Trust Score",
            "description": "Latest trust score (auto-computed if omitted)"
          },
          "cluster": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cluster",
            "description": "Current cluster assignment (auto-computed if omitted)"
          },
          "last_verified_at": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Verified At",
            "description": "Unix timestamp of last verification (defaults to now)"
          },
          "verification_count": {
            "type": "integer",
            "minimum": 1.0,
            "title": "Verification Count",
            "description": "Times entity verified",
            "default": 1
          },
          "agent_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Agent Id",
            "description": "ERC-8004 agent for verification: a numeric agentId (the registry's token id) or the agent's wallet address (EVM 0x\u2026, Base mainnet)"
          }
        },
        "type": "object",
        "required": [
          "entity_name"
        ],
        "title": "ReputationScoreRequest"
      },
      "ReputationTag": {
        "properties": {
          "tag": {
            "type": "string",
            "title": "Tag"
          },
          "count": {
            "type": "integer",
            "title": "Count"
          },
          "avg": {
            "type": "number",
            "title": "Avg"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "tag",
          "count",
          "avg"
        ],
        "title": "ReputationTag"
      },
      "RetentionPolicy": {
        "properties": {
          "category": {
            "$ref": "#/components/schemas/DataCategory"
          },
          "retention_days": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Retention Days",
            "description": "Days to retain (0 = until account deletion)"
          },
          "description": {
            "type": "string",
            "title": "Description"
          },
          "legal_basis": {
            "type": "string",
            "title": "Legal Basis",
            "description": "GDPR article reference"
          }
        },
        "type": "object",
        "required": [
          "category",
          "retention_days",
          "description",
          "legal_basis"
        ],
        "title": "RetentionPolicy"
      },
      "RiskResponse": {
        "properties": {
          "risk_score": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Risk Score",
            "description": "Risk score (100 = highest risk)"
          },
          "risk_level": {
            "$ref": "#/components/schemas/TrustLevel"
          },
          "recommendation": {
            "$ref": "#/components/schemas/Recommendation"
          },
          "top_factors": {
            "items": {
              "$ref": "#/components/schemas/TopFactor"
            },
            "type": "array",
            "maxItems": 3,
            "title": "Top Factors"
          },
          "processing_time_ms": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Processing Time Ms"
          },
          "response_quality": {
            "type": "string",
            "title": "Response Quality",
            "description": "Quality tier used for this response: cached or fresh",
            "default": "fresh"
          },
          "disclaimers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Disclaimers",
            "description": "Notes about this response, e.g. a retired pricing tier"
          }
        },
        "type": "object",
        "required": [
          "risk_score",
          "risk_level",
          "recommendation",
          "top_factors",
          "processing_time_ms"
        ],
        "title": "RiskResponse",
        "description": "Lighter risk-only response from /v1/risk/score."
      },
      "RiskSection": {
        "properties": {
          "trust_score": {
            "type": "integer",
            "title": "Trust Score"
          },
          "trust_level": {
            "type": "string",
            "title": "Trust Level"
          },
          "recommendation": {
            "type": "string",
            "title": "Recommendation"
          },
          "cluster": {
            "type": "string",
            "title": "Cluster"
          },
          "confidence": {
            "type": "number",
            "title": "Confidence"
          },
          "sources_checked": {
            "type": "integer",
            "title": "Sources Checked"
          },
          "rules_fired": {
            "items": {
              "$ref": "#/components/schemas/RuleFired"
            },
            "type": "array",
            "title": "Rules Fired"
          }
        },
        "type": "object",
        "required": [
          "trust_score",
          "trust_level",
          "recommendation",
          "cluster",
          "confidence",
          "sources_checked"
        ],
        "title": "RiskSection"
      },
      "RuleFired": {
        "properties": {
          "rule": {
            "type": "string",
            "title": "Rule"
          },
          "kind": {
            "type": "string",
            "enum": [
              "cap",
              "correlation",
              "factor",
              "source_gap"
            ],
            "title": "Kind"
          },
          "value": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "integer"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Value"
          },
          "effect": {
            "type": "string",
            "title": "Effect"
          }
        },
        "type": "object",
        "required": [
          "rule",
          "kind",
          "effect"
        ],
        "title": "RuleFired"
      },
      "SanctionsBlock": {
        "properties": {
          "screened": {
            "type": "boolean",
            "title": "Screened"
          },
          "hit": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hit"
          },
          "lists_as_of": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "Lists As Of",
            "default": {}
          },
          "list_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "List Note",
            "description": "When the EU list was checked: its file can lack listings adopted after its date."
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "company_not_resolved",
                  "legal_form_unknown",
                  "natural_person_legal_form",
                  "name_too_short",
                  "lists_unavailable"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "Why the company name was not screened. company_not_resolved: the company was not found in the register. legal_form_unknown: the register did not give a legal form, and sole-trader data is off (SOLE_TRADER_DATA_ENABLED). natural_person_legal_form: the company is a sole trader or partnership, so its name is a person's name and was not screened for this business. name_too_short: the registered name is too short to screen reliably. lists_unavailable: the sanctions lists could not be loaded."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "screened"
        ],
        "title": "SanctionsBlock"
      },
      "SanctionsComponent": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error",
              "not_requested"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "hit": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hit"
          },
          "lists": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Lists",
            "default": []
          },
          "programs": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Programs",
            "default": []
          },
          "list_as_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "List As Of"
          },
          "list_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "List Status"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "SanctionsComponent",
        "description": "OFAC SDN digital-currency address list match for the wallet."
      },
      "SanctionsList": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "as_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "As Of"
          },
          "as_of_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "As Of Reason",
            "default": "not_reported_by_source"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "SanctionsList"
      },
      "SanctionsMatch": {
        "properties": {
          "list": {
            "type": "string",
            "title": "List",
            "description": "The list's display name"
          },
          "list_key": {
            "type": "string",
            "title": "List Key",
            "description": "The list's stable key"
          },
          "entry_id": {
            "type": "string",
            "title": "Entry Id",
            "description": "The entry's id on its list"
          },
          "entry_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entry Type",
            "description": "Person, entity, vessel or aircraft"
          },
          "matched_name": {
            "type": "string",
            "title": "Matched Name",
            "description": "The listed name or alias that matched"
          },
          "programmes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Programmes",
            "description": "Sanctions programmes of the entry"
          },
          "countries": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Countries",
            "description": "Countries the entry names"
          },
          "listed_on": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listed On",
            "description": "Date the entry was listed"
          },
          "match_score": {
            "type": "number",
            "title": "Match Score",
            "description": "1.0 for an exact name match, lower for a token match"
          },
          "match_type": {
            "type": "string",
            "enum": [
              "name_exact",
              "name_tokens"
            ],
            "title": "Match Type"
          }
        },
        "type": "object",
        "required": [
          "list",
          "list_key",
          "entry_id",
          "matched_name",
          "programmes",
          "countries",
          "match_score",
          "match_type"
        ],
        "title": "SanctionsMatch",
        "description": "One list entry the name matched.\n\n``List`` from typing: the field named ``list`` shadows the builtin in this body."
      },
      "SanctionsPreviewResponse": {
        "properties": {
          "possible_match": {
            "type": "boolean",
            "title": "Possible Match"
          },
          "lists_checked": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Lists Checked"
          },
          "list_dates": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "List Dates",
            "description": "Each list's publication date, by list name"
          },
          "list_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "List Note",
            "description": "When the EU list was checked: its file can lack listings adopted after its date"
          },
          "detail": {
            "type": "string",
            "title": "Detail",
            "description": "Where the full match details are and what they cost"
          }
        },
        "type": "object",
        "required": [
          "possible_match",
          "lists_checked",
          "list_dates",
          "detail"
        ],
        "title": "SanctionsPreviewResponse",
        "description": "The free preview: yes or no, never an entry."
      },
      "SanctionsScreen": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "screened_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Screened At"
          },
          "result": {
            "type": "string",
            "enum": [
              "no_match",
              "match",
              "possible_match",
              "not_screened"
            ],
            "title": "Result"
          },
          "match_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Match Score"
          },
          "threshold": {
            "type": "number",
            "title": "Threshold"
          },
          "lists": {
            "items": {
              "$ref": "#/components/schemas/SanctionsList"
            },
            "type": "array",
            "title": "Lists"
          },
          "matched_on": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Matched On"
          },
          "listed_caption": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listed Caption"
          },
          "listed_countries": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Listed Countries"
          },
          "listed_case": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Listed Case"
          }
        },
        "type": "object",
        "required": [
          "status",
          "result",
          "threshold"
        ],
        "title": "SanctionsScreen"
      },
      "SanctionsScreenRequest": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 200,
            "minLength": 1,
            "title": "Name",
            "description": "Company or person name to screen"
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2,
                "minLength": 2
              },
              {
                "type": "null"
              }
            ],
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code (optional; orders matches, never excludes one)"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "name"
        ],
        "title": "SanctionsScreenRequest"
      },
      "SanctionsScreenResponse": {
        "properties": {
          "possible_match": {
            "type": "boolean",
            "title": "Possible Match"
          },
          "matches": {
            "items": {
              "$ref": "#/components/schemas/SanctionsMatch"
            },
            "type": "array",
            "title": "Matches"
          },
          "matches_truncated": {
            "type": "boolean",
            "title": "Matches Truncated",
            "description": "True when more entries matched than are listed"
          },
          "lists_checked": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Lists Checked"
          },
          "list_dates": {
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "type": "object",
            "title": "List Dates",
            "description": "Each list's publication date, by list name"
          },
          "list_note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "List Note",
            "description": "When the EU list was checked: its file can lack listings adopted after its date"
          },
          "disclaimer": {
            "type": "string",
            "title": "Disclaimer"
          },
          "screened_at": {
            "type": "string",
            "title": "Screened At",
            "description": "ISO 8601 timestamp of the screen"
          }
        },
        "type": "object",
        "required": [
          "possible_match",
          "matches",
          "matches_truncated",
          "lists_checked",
          "list_dates",
          "disclaimer",
          "screened_at"
        ],
        "title": "SanctionsScreenResponse",
        "description": "The paid screen: the matched entries."
      },
      "ScoreHistoryEntry": {
        "properties": {
          "entry_id": {
            "type": "string",
            "title": "Entry Id"
          },
          "subject": {
            "type": "string",
            "title": "Subject",
            "description": "Entity name/domain/wallet address"
          },
          "subject_hash": {
            "type": "string",
            "title": "Subject Hash",
            "description": "SHA-256 hash of subject for privacy"
          },
          "trust_score": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Trust Score",
            "description": "Trust score at this timestamp"
          },
          "trust_level": {
            "type": "string",
            "title": "Trust Level",
            "description": "high, medium, low, critical"
          },
          "recorded_at": {
            "type": "string",
            "format": "date-time",
            "title": "Recorded At"
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "Source of this score",
            "default": "api_check"
          },
          "metadata": {
            "additionalProperties": true,
            "type": "object",
            "title": "Metadata",
            "description": "Additional context"
          }
        },
        "type": "object",
        "required": [
          "subject",
          "subject_hash",
          "trust_score",
          "trust_level"
        ],
        "title": "ScoreHistoryEntry",
        "description": "Single trust score history entry for an entity."
      },
      "ScoreHistoryResponse": {
        "properties": {
          "subject_hash": {
            "type": "string",
            "title": "Subject Hash"
          },
          "entries": {
            "items": {
              "$ref": "#/components/schemas/ScoreHistoryEntry"
            },
            "type": "array",
            "title": "Entries"
          },
          "total_entries": {
            "type": "integer",
            "title": "Total Entries"
          },
          "trend": {
            "type": "string",
            "enum": [
              "improving",
              "declining",
              "stable",
              "insufficient_data"
            ],
            "title": "Trend"
          }
        },
        "type": "object",
        "required": [
          "subject_hash",
          "entries",
          "total_entries",
          "trend"
        ],
        "title": "ScoreHistoryResponse",
        "description": "Trust score history for a subject with trend analysis."
      },
      "ScoringMethodology": {
        "properties": {
          "version": {
            "type": "string",
            "title": "Version",
            "description": "Methodology version"
          },
          "data_sources": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Data Sources",
            "description": "Data sources consulted"
          },
          "weights": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "Weights",
            "description": "Signal weight configuration"
          },
          "algorithm_description": {
            "type": "string",
            "title": "Algorithm Description",
            "description": "High-level algorithm description"
          },
          "last_updated": {
            "type": "string",
            "format": "date-time",
            "title": "Last Updated",
            "description": "Last methodology update"
          }
        },
        "type": "object",
        "required": [
          "version",
          "data_sources",
          "weights",
          "algorithm_description",
          "last_updated"
        ],
        "title": "ScoringMethodology",
        "description": "Methodology of Limitguard's own self-verification score, for transparency."
      },
      "SectorComparison": {
        "properties": {
          "fiscal_year": {
            "type": "integer",
            "title": "Fiscal Year"
          },
          "equity_ratio_p50_pct": {
            "type": "integer",
            "title": "Equity Ratio P50 Pct"
          },
          "filings": {
            "type": "integer",
            "title": "Filings"
          }
        },
        "type": "object",
        "required": [
          "fiscal_year",
          "equity_ratio_p50_pct",
          "filings"
        ],
        "title": "SectorComparison",
        "description": "The same-sector median own-capital ratio the PDF and dashboard print beside\nthe company's (``nl_benchmarks.sector_input``), read when the report was built so a\nlater snapshot never changes a stored report. ``filings`` is the cell's count."
      },
      "SelfVerificationResult": {
        "properties": {
          "entity_name": {
            "type": "string",
            "title": "Entity Name",
            "description": "Entity being verified"
          },
          "trust_score": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Trust Score",
            "description": "Trust score 0-100"
          },
          "trust_level": {
            "type": "string",
            "title": "Trust Level",
            "description": "Trust level (HIGH, MEDIUM, LOW)"
          },
          "verified_at": {
            "type": "string",
            "format": "date-time",
            "title": "Verified At",
            "description": "Verification timestamp"
          },
          "signals": {
            "items": {
              "$ref": "#/components/schemas/TrustSignal"
            },
            "type": "array",
            "title": "Signals",
            "description": "List of trust signals evaluated"
          },
          "scoring_methodology_url": {
            "type": "string",
            "title": "Scoring Methodology Url",
            "description": "URL to the methodology of this self-verification score"
          }
        },
        "type": "object",
        "required": [
          "entity_name",
          "trust_score",
          "trust_level",
          "verified_at",
          "signals",
          "scoring_methodology_url"
        ],
        "title": "SelfVerificationResult",
        "description": "Result of running Limitguard through its own trust engine."
      },
      "ShellSignal": {
        "properties": {
          "signal": {
            "type": "string",
            "enum": [
              "no_staff",
              "holding_activity",
              "no_website",
              "no_mail_server",
              "recently_registered",
              "no_annual_accounts"
            ],
            "title": "Signal"
          },
          "words": {
            "type": "string",
            "title": "Words",
            "examples": [
              "no staff"
            ]
          },
          "source": {
            "type": "string",
            "title": "Source",
            "description": "Where the fact comes from",
            "examples": [
              "KVK register"
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "signal",
          "words",
          "source"
        ],
        "title": "ShellSignal"
      },
      "SkippedComponent": {
        "properties": {
          "component": {
            "type": "string",
            "title": "Component"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "component",
          "reason"
        ],
        "title": "SkippedComponent"
      },
      "SourceStatus": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "ready, not_configured, unavailable, degraded, or unknown (not yet probed)"
          },
          "latency_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latency Ms"
          }
        },
        "type": "object",
        "required": [
          "name",
          "status"
        ],
        "title": "SourceStatus"
      },
      "SubscriptionTier": {
        "type": "string",
        "enum": [
          "basic",
          "pro",
          "enterprise"
        ],
        "title": "SubscriptionTier",
        "description": "Stored on the subscription, not used yet: no digest, alert or webhook is\nsent for any tier (delivery is by polling GET /v1/compliance/alerts)."
      },
      "TopFactor": {
        "properties": {
          "source": {
            "type": "string",
            "title": "Source",
            "description": "Data source name"
          },
          "signal": {
            "type": "string",
            "title": "Signal",
            "description": "What was found"
          },
          "impact": {
            "type": "string",
            "title": "Impact",
            "description": "positive, negative, or neutral"
          },
          "weight": {
            "type": "number",
            "title": "Weight",
            "description": "Contribution to score (0-1)"
          }
        },
        "type": "object",
        "required": [
          "source",
          "signal",
          "impact",
          "weight"
        ],
        "title": "TopFactor"
      },
      "TrustCertificate": {
        "properties": {
          "certificate_id": {
            "type": "string",
            "title": "Certificate Id",
            "description": "Unique certificate UUID"
          },
          "entity_name": {
            "type": "string",
            "title": "Entity Name",
            "description": "Name of certified entity"
          },
          "country": {
            "type": "string",
            "title": "Country",
            "description": "2-character ISO country code"
          },
          "trust_score": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Trust Score",
            "description": "Trust score 0-100"
          },
          "trust_level": {
            "type": "string",
            "title": "Trust Level",
            "description": "Trust level (HIGH, MEDIUM, LOW)"
          },
          "issued_at": {
            "type": "string",
            "format": "date-time",
            "title": "Issued At",
            "description": "Certificate issuance timestamp"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "title": "Expires At",
            "description": "Certificate expiration timestamp"
          },
          "certificate_hash": {
            "type": "string",
            "title": "Certificate Hash",
            "description": "SHA-256 hash of certificate content"
          },
          "issuer": {
            "type": "string",
            "title": "Issuer",
            "description": "Certificate issuer",
            "default": "Limitguard.ai"
          },
          "schema_version": {
            "type": "string",
            "title": "Schema Version",
            "description": "Certificate schema version",
            "default": "1.0"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Certificate status",
            "default": "active"
          },
          "json_ld": {
            "additionalProperties": true,
            "type": "object",
            "title": "Json Ld",
            "description": "JSON-LD structured data representation"
          }
        },
        "type": "object",
        "required": [
          "certificate_id",
          "entity_name",
          "country",
          "trust_score",
          "trust_level",
          "issued_at",
          "expires_at",
          "certificate_hash",
          "json_ld"
        ],
        "title": "TrustCertificate",
        "description": "Trust certificate issued by Limitguard.ai."
      },
      "TrustLevel": {
        "type": "string",
        "enum": [
          "high",
          "medium",
          "low",
          "critical"
        ],
        "title": "TrustLevel"
      },
      "TrustResponse": {
        "properties": {
          "trust_score": {
            "type": "integer",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Trust Score",
            "description": "Overall trust score"
          },
          "trust_level": {
            "$ref": "#/components/schemas/TrustLevel"
          },
          "cluster": {
            "$ref": "#/components/schemas/Cluster"
          },
          "recommendation": {
            "$ref": "#/components/schemas/Recommendation"
          },
          "confidence": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "description": "Score confidence (0-1)"
          },
          "top_factors": {
            "items": {
              "$ref": "#/components/schemas/TopFactor"
            },
            "type": "array",
            "maxItems": 5,
            "title": "Top Factors"
          },
          "correlations": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "Correlations",
            "description": "Key correlations between signals"
          },
          "findings": {
            "items": {
              "$ref": "#/components/schemas/Finding"
            },
            "type": "array",
            "title": "Findings",
            "description": "One action per mismatch the correlations show (same rules as the report)"
          },
          "company_profile": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CompanyProfile"
              },
              {
                "type": "null"
              }
            ],
            "description": "NL: what the KVK register says about the company (industry, stopped date, size, non-mailing, names, websites)"
          },
          "dormant_shell": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DormantShell"
              },
              {
                "type": "null"
              }
            ],
            "description": "Weighted dormant-shell score with the signals that fired, for a company found in the register. Information only: never changes trust_score"
          },
          "icp_fit": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/IcpFit"
              },
              {
                "type": "null"
              }
            ],
            "description": "The company against target_industries / target_size; null when neither was sent. Information only: never changes trust_score"
          },
          "sources_checked": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Sources Checked"
          },
          "processing_time_ms": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Processing Time Ms"
          },
          "enhanced_check_hint": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EnhancedCheckHint"
              },
              {
                "type": "null"
              }
            ],
            "description": "Suggested deeper check when recommendation is review or enhanced_due_diligence"
          },
          "response_quality": {
            "type": "string",
            "title": "Response Quality",
            "description": "Quality tier used for this response: cached or fresh. 'enhanced' was retired on 2026-09-24; a request for it is served fresh with a note in disclaimers",
            "default": "fresh"
          },
          "cache_hit": {
            "type": "boolean",
            "title": "Cache Hit",
            "description": "True if result was served from cache (cached tier)",
            "default": false
          },
          "source_data_dates": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Source Data Dates",
            "description": "ISO timestamps when each data source was last retrieved"
          },
          "disclaimers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Disclaimers",
            "description": "Legal disclaimers for data sources used in this response"
          },
          "version": {
            "type": "string",
            "title": "Version",
            "default": "1.0"
          }
        },
        "type": "object",
        "required": [
          "trust_score",
          "trust_level",
          "cluster",
          "recommendation",
          "confidence",
          "top_factors",
          "sources_checked",
          "processing_time_ms"
        ],
        "title": "TrustResponse",
        "description": "Trust check response from /v1/entity/check: trust score, recommendation, top factors and findings."
      },
      "TrustScoreRequest": {
        "properties": {
          "entity_id": {
            "type": "string",
            "title": "Entity Id",
            "description": "Entity identifier"
          }
        },
        "type": "object",
        "required": [
          "entity_id"
        ],
        "title": "TrustScoreRequest"
      },
      "TrustSignal": {
        "properties": {
          "signal_name": {
            "type": "string",
            "title": "Signal Name",
            "description": "Name of the trust signal"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "description": "Signal status (verified, pending, failed)"
          },
          "verifiable": {
            "type": "boolean",
            "title": "Verifiable",
            "description": "Whether signal can be independently verified"
          },
          "evidence_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidence Url",
            "description": "URL to verification evidence"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Human-readable signal description"
          }
        },
        "type": "object",
        "required": [
          "signal_name",
          "status",
          "verifiable",
          "description"
        ],
        "title": "TrustSignal",
        "description": "Individual trust signal verification result."
      },
      "UsageCalls": {
        "properties": {
          "total": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Total",
            "description": "Total API calls"
          },
          "by_endpoint": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Endpoint",
            "description": "Calls grouped by endpoint"
          },
          "by_status": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "By Status",
            "description": "Calls grouped by HTTP status code"
          }
        },
        "type": "object",
        "required": [
          "total"
        ],
        "title": "UsageCalls",
        "description": "Call statistics."
      },
      "UsageCost": {
        "properties": {
          "total_usd": {
            "type": "number",
            "minimum": 0.0,
            "title": "Total Usd",
            "description": "Total cost in USD"
          },
          "by_endpoint": {
            "additionalProperties": {
              "type": "number"
            },
            "type": "object",
            "title": "By Endpoint",
            "description": "Cost grouped by endpoint"
          }
        },
        "type": "object",
        "required": [
          "total_usd"
        ],
        "title": "UsageCost",
        "description": "Cost breakdown."
      },
      "UsagePerformance": {
        "properties": {
          "avg_response_time_ms": {
            "type": "number",
            "minimum": 0.0,
            "title": "Avg Response Time Ms",
            "description": "Average response time in ms"
          },
          "p95_response_time_ms": {
            "type": "number",
            "minimum": 0.0,
            "title": "P95 Response Time Ms",
            "description": "95th percentile response time in ms"
          },
          "cache_hit_rate": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Cache Hit Rate",
            "description": "Cache hit rate percentage"
          }
        },
        "type": "object",
        "required": [
          "avg_response_time_ms",
          "p95_response_time_ms",
          "cache_hit_rate"
        ],
        "title": "UsagePerformance",
        "description": "Performance metrics."
      },
      "UsagePeriod": {
        "type": "string",
        "enum": [
          "current_month",
          "previous_month",
          "last_7_days",
          "last_30_days"
        ],
        "title": "UsagePeriod",
        "description": "Time period for usage aggregation."
      },
      "UsageQuota": {
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Limit",
            "description": "Monthly request limit"
          },
          "used": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Used",
            "description": "Requests used in period"
          },
          "remaining": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Remaining",
            "description": "Remaining requests"
          },
          "percent_used": {
            "type": "number",
            "maximum": 100.0,
            "minimum": 0.0,
            "title": "Percent Used",
            "description": "Percentage of quota used"
          }
        },
        "type": "object",
        "required": [
          "limit",
          "used",
          "remaining",
          "percent_used"
        ],
        "title": "UsageQuota",
        "description": "Usage quota information."
      },
      "UsageSummary": {
        "properties": {
          "total_calls": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Total Calls",
            "description": "Total API calls in period"
          },
          "total_cost_usd": {
            "type": "number",
            "minimum": 0.0,
            "title": "Total Cost Usd",
            "description": "Total cost in USD"
          },
          "avg_latency_ms": {
            "type": "number",
            "minimum": 0.0,
            "title": "Avg Latency Ms",
            "description": "Average latency in ms"
          },
          "period": {
            "type": "string",
            "title": "Period",
            "description": "Aggregation period (day, week, month)"
          },
          "endpoint_counts": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Endpoint Counts",
            "description": "Calls per endpoint"
          },
          "calls_by_status": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Calls By Status",
            "description": "Calls grouped by HTTP status code"
          }
        },
        "type": "object",
        "required": [
          "total_calls",
          "total_cost_usd",
          "avg_latency_ms",
          "period"
        ],
        "title": "UsageSummary",
        "description": "Aggregated usage stats returned by /v1/usage/summary."
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "ValidationErrorItem": {
        "properties": {
          "field": {
            "type": "string",
            "title": "Field",
            "description": "The rejected field's name (the last part of its location)"
          },
          "message": {
            "type": "string",
            "title": "Message",
            "description": "Why it was rejected; generic unless the rule is ours"
          }
        },
        "type": "object",
        "required": [
          "field",
          "message"
        ],
        "title": "ValidationErrorItem",
        "description": "One rejected field of a 422."
      },
      "ValidationErrorResponse": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "default": "https://docs.limitguard.ai/errors#validation-error"
          },
          "title": {
            "type": "string",
            "title": "Title",
            "default": "Validation Error"
          },
          "status": {
            "type": "integer",
            "title": "Status",
            "default": 422
          },
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationErrorItem"
            },
            "type": "array",
            "title": "Detail"
          },
          "instance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instance"
          },
          "errorCode": {
            "type": "string",
            "title": "Errorcode",
            "default": "validation_error"
          },
          "note": {
            "type": "string",
            "title": "Note",
            "default": "Nothing was charged."
          }
        },
        "type": "object",
        "required": [
          "detail"
        ],
        "title": "ValidationErrorResponse",
        "description": "RFC 7807 body of a 422 request validation error.\n\nThe shape main.py's RequestValidationError handler sends, so a generated client\nparses `detail` as the list it is, not as a string."
      },
      "VatBlock": {
        "properties": {
          "checked": {
            "type": "boolean",
            "title": "Checked"
          },
          "valid": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid"
          },
          "name_match": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name Match"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "vies_unavailable",
                  "invalid_format",
                  "non_eu_country"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason",
            "description": "Why the VAT number was not checked or not valid. vies_unavailable: the EU VAT service did not answer, so it was not checked. invalid_format: the number is not in an EU VAT number format. non_eu_country: the number does not start with an EU country code."
          },
          "derived_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Derived Number",
            "description": "A Dutch legal entity's VAT number when none was sent: NL + its RSIN + B01, B02 or B03, shown only when the EU VAT service confirmed it valid. null otherwise."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "checked"
        ],
        "title": "VatBlock"
      },
      "VerifyWalletRequest": {
        "properties": {
          "wallet_address": {
            "type": "string",
            "title": "Wallet Address",
            "description": "Blockchain wallet address"
          },
          "chain_id": {
            "type": "string",
            "title": "Chain Id",
            "description": "CAIP-2 chain ID",
            "default": "eip155:8453"
          }
        },
        "type": "object",
        "required": [
          "wallet_address"
        ],
        "title": "VerifyWalletRequest"
      },
      "WalletHealth": {
        "properties": {
          "treasury_balance_usdc": {
            "type": "number",
            "minimum": 0.0,
            "title": "Treasury Balance Usdc"
          },
          "frozen": {
            "type": "boolean",
            "title": "Frozen",
            "default": false
          },
          "pending_settlements": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Pending Settlements",
            "description": "Pending rows still inside the sweep's retry budget (in-flight). Rows the sweep cannot rebuild into a payment are charged the same budget, so they drain to exhausted_settlements rather than sitting here forever"
          },
          "exhausted_settlements": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Exhausted Settlements",
            "description": "Pending rows whose sweep_attempts reached MAX_RETRIES: credited, never settled, no longer retried. Not included in pending_settlements",
            "default": 0
          },
          "failed_settlements": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Failed Settlements",
            "description": "Ledger rows the startup sweep resolved to FAILED. These are no longer counted by pending_settlements, so without this they would disappear from the health view entirely.",
            "default": 0
          },
          "uncollected_usdc": {
            "type": "number",
            "minimum": 0.0,
            "title": "Uncollected Usdc",
            "description": "USDC credited to the ledger that will never settle: exhausted PENDING plus FAILED rows, excluding rows written off (, see written_off_usdc). Reconciliation work, expressed as money rather than as two row counts.",
            "default": 0.0
          },
          "written_off_usdc": {
            "type": "number",
            "minimum": 0.0,
            "title": "Written Off Usdc",
            "description": "USDC on ledger rows an operator wrote off as never settling: excluded from exhausted_settlements, failed_settlements and uncollected_usdc, summed here so the loss stays visible.",
            "default": 0.0
          },
          "settlement_configured": {
            "type": "boolean",
            "title": "Settlement Configured",
            "description": "True when the EVM settler would run (SETTLEMENT_RPC_URL and SETTLEMENT_PRIVATE_KEY both set). EVM leg only; see solana_settlement_configured for the other leg. When False, EVM rows stay pending indefinitely",
            "default": false
          },
          "solana_settlement_configured": {
            "type": "boolean",
            "title": "Solana Settlement Configured",
            "description": "True when the Solana settler would run (SOLANA_RPC_URL and SOLANA_FEE_PAYER_PRIVATE_KEY both set). All three settlement counters above are chain-mixed, so both flags must be read to know whether they are trustworthy. When False, Solana rows stay pending indefinitely",
            "default": false
          },
          "total_revenue_usdc": {
            "type": "number",
            "minimum": 0.0,
            "title": "Total Revenue Usdc"
          },
          "agents_tracked": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Agents Tracked"
          },
          "failed_settlement_queue_depth": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Failed Settlement Queue Depth",
            "default": 0
          },
          "solana_fee_payer_balance_sol": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Solana Fee Payer Balance Sol",
            "description": "Fee payer's SOL balance, or null when solana_settlement_configured is false or the RPC read failed (not the same as a genuine zero)."
          },
          "solana_fee_payer_low_balance": {
            "type": "boolean",
            "title": "Solana Fee Payer Low Balance",
            "description": "True when solana_fee_payer_balance_sol is below SOLANA_FEE_PAYER_LOW_BALANCE_SOL (default 0.05). Always false when the balance could not be read.",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "treasury_balance_usdc",
          "pending_settlements",
          "total_revenue_usdc",
          "agents_tracked"
        ],
        "title": "WalletHealth",
        "description": "Financial system health status."
      },
      "WalletRiskComponent": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error",
              "not_requested"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "risk_score": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Risk Score"
          },
          "risk_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Risk Level"
          },
          "rules_fired": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Rules Fired",
            "default": []
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "status"
        ],
        "title": "WalletRiskComponent",
        "description": "The wallet screen's own risk score and the named rules that fired."
      },
      "WalletSanctionsRequest": {
        "properties": {
          "wallet_address": {
            "type": "string",
            "title": "Wallet Address",
            "description": "Blockchain wallet address"
          },
          "chain_id": {
            "type": "string",
            "title": "Chain Id",
            "description": "CAIP-2 chain ID",
            "default": "eip155:8453"
          }
        },
        "type": "object",
        "required": [
          "wallet_address"
        ],
        "title": "WalletSanctionsRequest",
        "description": "POST /v1/sanctions/wallet: the fields, defaults and validation of the full\nwallet screen's body (routers/mcp.py VerifyWalletRequest, then\nmcp_server.validation.VerifyWalletInput in the route), so a body moves\nbetween the two unchanged."
      },
      "WalletSanctionsResponse": {
        "properties": {
          "wallet_address": {
            "type": "string",
            "title": "Wallet Address",
            "description": "The address in canonical form"
          },
          "chain_id": {
            "type": "string",
            "title": "Chain Id",
            "description": "CAIP-2 chain ID"
          },
          "sanctioned": {
            "type": "boolean",
            "title": "Sanctioned"
          },
          "lists": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Lists",
            "description": "[\"OFAC SDN\"] on a match, else []"
          },
          "as_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "As Of",
            "description": "Publication date of the list"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "stale"
            ],
            "title": "Status",
            "description": "stale when the loaded list is older than the freshness limit"
          },
          "source": {
            "type": "string",
            "title": "Source"
          },
          "upgrade": {
            "$ref": "#/components/schemas/WalletSanctionsUpgrade"
          }
        },
        "type": "object",
        "required": [
          "wallet_address",
          "chain_id",
          "sanctioned",
          "lists",
          "status",
          "source",
          "upgrade"
        ],
        "title": "WalletSanctionsResponse",
        "description": "The free wallet sanctions check: yes or no, never a programme or entry id."
      },
      "WalletSanctionsUpgrade": {
        "properties": {
          "path": {
            "type": "string",
            "title": "Path"
          },
          "tool": {
            "type": "string",
            "title": "Tool",
            "description": "The MCP tool of the full screen"
          },
          "price_usd": {
            "type": "number",
            "title": "Price Usd"
          },
          "adds": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Adds",
            "description": "What the full screen adds, in plain English"
          }
        },
        "type": "object",
        "required": [
          "path",
          "tool",
          "price_usd",
          "adds"
        ],
        "title": "WalletSanctionsUpgrade",
        "description": "The paid full wallet screen the free answer points at."
      },
      "WalletScreen": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "unavailable",
              "error"
            ],
            "title": "Status"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "address": {
            "type": "string",
            "title": "Address"
          },
          "chain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Chain"
          },
          "valid_format": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Valid Format"
          },
          "screening": {
            "type": "string",
            "title": "Screening"
          }
        },
        "type": "object",
        "required": [
          "status",
          "address",
          "screening"
        ],
        "title": "WalletScreen"
      },
      "WatchlistAddRequest": {
        "properties": {
          "entity_id": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Entity Id"
          },
          "entity_name": {
            "type": "string",
            "maxLength": 256,
            "minLength": 1,
            "title": "Entity Name"
          },
          "reason": {
            "type": "string",
            "maxLength": 500,
            "title": "Reason",
            "default": ""
          },
          "rescore_interval": {
            "type": "integer",
            "minimum": 3600.0,
            "title": "Rescore Interval",
            "description": "Seconds between rescores. Applies only when change monitoring is switched on for this service; it is off by default. The service enforces a minimum interval (7 days by default).",
            "default": 604800
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code. With a country and at least one typed identifier, the entry is under change monitoring on plans that include it, when change monitoring is switched on for this service (then a weekly re-check, changes sent as identifier.change.new webhooks). It is off by default."
          },
          "kvk_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Kvk Number",
            "description": "Dutch KVK number (8 digits)"
          },
          "cbe_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cbe Number",
            "description": "Belgian CBE number"
          },
          "vat_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 20
              },
              {
                "type": "null"
              }
            ],
            "title": "Vat Number",
            "description": "EU VAT number"
          },
          "domain": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 253
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain",
            "description": "Entity website domain"
          },
          "wallet_address": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Address",
            "description": "Crypto wallet address"
          },
          "wallet_chain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Chain",
            "description": "Chain of wallet_address"
          }
        },
        "type": "object",
        "required": [
          "entity_id",
          "entity_name"
        ],
        "title": "WatchlistAddRequest"
      },
      "WebhookCreateRequest": {
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048,
            "minLength": 1,
            "title": "Url",
            "description": "HTTPS callback URL"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "type": "array",
            "minItems": 1,
            "title": "Events",
            "description": "Event types to subscribe to"
          }
        },
        "type": "object",
        "required": [
          "url",
          "events"
        ],
        "title": "WebhookCreateRequest"
      },
      "WebhookCreateResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "type": "array",
            "title": "Events"
          },
          "secret": {
            "type": "string",
            "title": "Secret"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "delivered_events": {
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "type": "array",
            "title": "Delivered Events",
            "description": "Subset of `events` actually sent today; the rest are registrable but not yet emitted by anything"
          }
        },
        "type": "object",
        "required": [
          "id",
          "url",
          "events",
          "secret",
          "active",
          "created_at",
          "delivered_events"
        ],
        "title": "WebhookCreateResponse",
        "description": "Response for POST /v1/webhooks -- includes secret (one-time display)."
      },
      "WebhookEventType": {
        "type": "string",
        "enum": [
          "trust.score.changed",
          "sanctions.match.new",
          "trust.level.downgrade",
          "certificate.expired",
          "identifier.change.new"
        ],
        "title": "WebhookEventType"
      },
      "WebhookListResponse": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "type": "array",
            "title": "Events"
          },
          "active": {
            "type": "boolean",
            "title": "Active"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "title": "Created At"
          },
          "delivered_events": {
            "items": {
              "$ref": "#/components/schemas/WebhookEventType"
            },
            "type": "array",
            "title": "Delivered Events"
          }
        },
        "type": "object",
        "required": [
          "id",
          "url",
          "events",
          "active",
          "created_at",
          "delivered_events"
        ],
        "title": "WebhookListResponse",
        "description": "Response for GET /v1/webhooks -- secret excluded (DYN-405)."
      },
      "WebsitePhone": {
        "properties": {
          "number": {
            "type": "string",
            "title": "Number",
            "description": "E.164",
            "examples": [
              "+31201234567"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "landline",
              "mobile",
              "freephone"
            ],
            "title": "Type"
          },
          "found_on_url": {
            "type": "string",
            "title": "Found On Url"
          },
          "retrieved_at": {
            "type": "string",
            "title": "Retrieved At"
          },
          "source": {
            "type": "string",
            "const": "website",
            "title": "Source",
            "default": "website"
          },
          "source_label": {
            "type": "string",
            "title": "Source Label",
            "examples": [
              "on bol.com, company details page, next to its Chamber of Commerce number"
            ]
          },
          "page_kind": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "home",
                  "company_details",
                  "contact",
                  "about"
                ]
              },
              {
                "type": "null"
              }
            ],
            "title": "Page Kind"
          },
          "register_number_on_page": {
            "type": "boolean",
            "title": "Register Number On Page",
            "description": "The page also shows the company's own KVK/KBO or VAT number.",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "number",
          "type",
          "found_on_url",
          "retrieved_at",
          "source_label"
        ],
        "title": "WebsitePhone",
        "description": "A phone number the company publishes on its website."
      },
      "app__models__report__PepMatch": {
        "properties": {
          "caption": {
            "type": "string",
            "title": "Caption"
          },
          "score": {
            "type": "number",
            "title": "Score"
          },
          "datasets": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Datasets"
          },
          "topics": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Topics"
          }
        },
        "type": "object",
        "required": [
          "caption",
          "score"
        ],
        "title": "PepMatch"
      },
      "app__models__request__RiskScoreRequest": {
        "properties": {
          "entity_name": {
            "type": "string",
            "maxLength": 500,
            "minLength": 1,
            "title": "Entity Name",
            "description": "Legal entity name"
          },
          "country": {
            "type": "string",
            "maxLength": 2,
            "minLength": 2,
            "title": "Country",
            "description": "ISO 3166-1 alpha-2 country code"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "entity_name",
          "country"
        ],
        "title": "RiskScoreRequest",
        "description": "Lighter risk-only request - faster, fewer sources."
      },
      "app__models__response__PepMatch": {
        "properties": {
          "caption": {
            "type": "string",
            "title": "Caption",
            "description": "Matched entity display name"
          },
          "schema_type": {
            "type": "string",
            "title": "Schema Type",
            "description": "FollowTheMoney schema, e.g. Person"
          },
          "topics": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Topics",
            "description": "Risk topics, e.g. role.pep, role.rca"
          },
          "datasets": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Datasets"
          },
          "score": {
            "type": "number",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Score",
            "description": "Match confidence"
          },
          "countries": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Countries"
          },
          "birth_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Birth Date"
          }
        },
        "type": "object",
        "required": [
          "caption",
          "schema_type",
          "topics",
          "score"
        ],
        "title": "PepMatch",
        "description": "One OpenSanctions PEP/RCA match, projected to the fields we stand behind."
      },
      "app__routers__mcp__RiskScoreRequest": {
        "properties": {
          "entity_name": {
            "type": "string",
            "title": "Entity Name",
            "description": "Full legal name"
          },
          "country": {
            "type": "string",
            "title": "Country",
            "description": "ISO country code"
          }
        },
        "type": "object",
        "required": [
          "entity_name",
          "country"
        ],
        "title": "RiskScoreRequest"
      }
    },
    "securitySchemes": {
      "APIKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.limitguard.ai"
    }
  ]
}
