{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/popp/json-schema/popp-list-document-types-response-schema.json",
  "title": "ListDocumentTypesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/popp-documents-api-openapi.yml#/components/schemas/ListDocumentTypesResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "validation": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "CHECK_DOCUMENT_CORNER_INCLUSION",
                "CHECK_NAME_MATCH",
                "CHECK_EXPIRATION_DATE",
                "CHECK_ISSUE_DATE",
                "CHECK_DATE_OF_BIRTH_INCLUSION",
                "CHECK_HOME_ADDRESS_INCLUSION"
              ]
            }
          },
          "classificationRules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "INCLUDES_FIELD"
                  ]
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "type",
                "value"
              ]
            }
          },
          "validationSettings": {
            "type": "string",
            "description": "JSON-encoded settings that tune the validation checks."
          },
          "externalId": {
            "type": "string"
          },
          "isArchived": {
            "type": "boolean"
          },
          "isUsedInCampaign": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "organizationId",
          "name",
          "isArchived",
          "isUsedInCampaign",
          "createdAt",
          "updatedAt"
        ]
      }
    },
    "nextToken": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pagination token. Pass on subsequent requests to fetch the next page."
    }
  },
  "required": [
    "data"
  ]
}