{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ohmyfin-ai/json-schema/ohmyfin-ai-sanctions-entity-schema.json",
  "title": "SanctionsEntity",
  "description": "Full entity detail. Real fields (`entity_id`, `name`, …) live at the top\nlevel of this object — read them as `response.entity.<field>`.\n\nThe nested `entity` property is a DEPRECATED alias retained for\nback-compat with clients wired to the original double-wrapped shape\n(`response.entity.entity.name`). It will be removed in v5. New\nintegrators should ignore it.\n",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ohmyfin-ai-openapi.json#/components/schemas/SanctionsEntity",
  "type": "object",
  "properties": {
    "entity_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "entity_type": {
      "type": "string"
    },
    "list_source": {
      "type": "string"
    },
    "severity": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    },
    "action": {
      "type": "string",
      "enum": [
        "BLOCK",
        "REVIEW",
        "MONITOR",
        "INFORM"
      ]
    },
    "action_label": {
      "type": "string"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "nationalities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dates_of_birth": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "places_of_birth": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "addresses": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "identifiers": {
      "type": "array",
      "description": "Passport / tax-ID / national-ID records.",
      "items": {
        "type": "object"
      }
    },
    "programs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "remarks": {
      "type": [
        "string",
        "null"
      ]
    },
    "sanctions_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "legal_authorities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Upstream snapshot timestamp for this entity record."
    },
    "entity": {
      "deprecated": true,
      "description": "DEPRECATED — alias for the flat fields above. Retained for clients\nwired to the original `response.entity.entity.*` path. Will be\nremoved in v5.\n",
      "type": "object"
    }
  }
}