{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/withverifa-com/json-schema/withverifa-com-document-type-schema.json",
  "title": "DocumentType",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/withverifa-com-openapi.yml#/components/schemas/DocumentType",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Document type ID."
    },
    "org_id": {
      "type": "string",
      "description": "Organization ID."
    },
    "slug": {
      "type": "string",
      "description": "URL-safe identifier for this document type."
    },
    "label": {
      "type": "string",
      "description": "Human-readable display label."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Free-text visual + content description of this document type.\nUsed by Verifa's document classifier\nto recognize uploaded documents and pick this type when it matches.\nBe specific about logos, layouts, and prominent fields — clearer\ndescriptions give better classification accuracy.\n"
    },
    "category": {
      "type": "string",
      "description": "Parent category for grouping in the dashboard. One of:\n`financial`, `corporate`, `identity`, `address`, `vehicle`,\n`government`, or `other`.\n"
    },
    "extraction_hints": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "string"
      },
      "description": "Map of `{field_name: hint}` describing the structured fields to\nextract from documents of this type. Each hint is a short\nfree-text description of how to identify the field — including\ncommon synonyms, expected format, and any disambiguation tips\n(\"Member ID, sometimes labeled 'Subscriber ID' or 'Policy #'\").\n\nWhen set, uploaded documents of this type are passed through\nVerifa's document extractor and the resulting fields appear on\nthe document's `extracted_fields` response field. All extraction\nruns on Verifa's private infrastructure — document content is\nnever sent to third-party services.\n"
    },
    "check_suite": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "Optional override of the verification check suite for documents\nof this type. Each entry is a `[check_name, category, requirement]`\ntuple. When set, this overrides the org-level check_config and\nthe hardcoded default suite for the matching classification.\n"
    },
    "is_active": {
      "type": "boolean",
      "description": "Whether this document type is active."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "org_id",
    "slug",
    "label",
    "category",
    "is_active",
    "created_at",
    "updated_at"
  ]
}