{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-kyc-extraction-schema.json",
  "title": "KycExtraction",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-documents-api-openapi.yml#/components/schemas/KycExtraction",
  "type": "object",
  "properties": {
    "submissionId": {
      "type": "string"
    },
    "documentId": {
      "type": "string"
    },
    "fields": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "description": "Structured fields extracted from the CIS document by the VLM."
    },
    "confidence": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      },
      "description": "Per-field confidence 0-1."
    },
    "needs_review": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "extraction_model": {
      "type": "string"
    },
    "extraction_latency_ms": {
      "type": [
        "integer",
        "null"
      ]
    },
    "extracted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}