{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-demo-extract-result-schema.json",
  "title": "DemoExtractResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-demo-api-openapi.yml#/components/schemas/DemoExtractResult",
  "type": "object",
  "required": [
    "demo",
    "sample_id",
    "extracted",
    "provider",
    "confidence",
    "sanctions",
    "latency_ms",
    "disclaimer",
    "cached"
  ],
  "properties": {
    "demo": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "sample_id": {
      "type": "string",
      "description": "Bundled specimen document id."
    },
    "extracted": {
      "type": "object",
      "properties": {
        "full_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "date_of_birth": {
          "type": [
            "string",
            "null"
          ]
        },
        "document_number": {
          "type": [
            "string",
            "null"
          ]
        },
        "nationality": {
          "type": [
            "string",
            "null"
          ]
        },
        "expiry_date": {
          "type": [
            "string",
            "null"
          ]
        },
        "issuing_country": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "provider": {
      "type": "string",
      "description": "Extraction provider that produced the result (e.g. myai, anthropic, gemini, both)."
    },
    "confidence": {
      "type": "string",
      "enum": [
        "low",
        "high"
      ]
    },
    "sanctions": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "description": "Screening status, e.g. CLEAR, HIT, PARTIAL or ERROR."
        },
        "total_hits": {
          "type": "integer"
        },
        "lists_searched": {
          "type": "integer",
          "description": "Number of sanctions entries searched."
        }
      }
    },
    "latency_ms": {
      "type": "integer"
    },
    "disclaimer": {
      "type": "string"
    },
    "cached": {
      "type": "boolean",
      "description": "true when served from the 5-minute in-process cache."
    }
  }
}