{
  "openapi": "3.0.4",
  "info": {},
  "paths": {},
  "components": {
    "schemas": {
      "DocumentVerificationImageSource": {
        "type": "object",
        "properties": {
          "imageUrl": {
            "type": "string",
            "nullable": true
          },
          "imageBase64": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MatchLevel": {
        "uniqueItems": true,
        "enum": [
          "DISABLED",
          "LEVEL_1",
          "LEVEL_2",
          "LEVEL_3",
          "LEVEL_4",
          "LEVEL_5",
          "LEVEL_6",
          "LEVEL_7",
          "LEVEL_8",
          "LEVEL_9",
          "LEVEL_10"
        ],
        "type": "string",
        "format": "string"
      },
      "AnonymizationMode": {
        "uniqueItems": true,
        "enum": [
          "NONE",
          "IMAGE_ONLY",
          "RESULT_FIELDS_ONLY",
          "FULL_RESULT"
        ],
        "type": "string",
        "format": "string"
      },
      "VerificationSideMode": {
        "uniqueItems": true,
        "enum": [
          "MULTI_SIDE",
          "FRONT_ONLY",
          "BACK_ONLY"
        ],
        "type": "string",
        "format": "string"
      },
      "ImageFormat": {
        "uniqueItems": true,
        "enum": [
          "JPG",
          "PNG"
        ],
        "type": "string",
        "format": "string"
      },
      "ImageQualityInterpretation": {
        "uniqueItems": true,
        "enum": [
          "IGNORE",
          "CONSERVATIVE",
          "HIGH_ASSURANCE",
          "HIGH_CONVERSION",
          "VERY_HIGH_CONVERSION"
        ],
        "type": "string",
        "format": "string"
      },
      "DocumentVerificationRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "imageFront": {
            "$ref": "#/components/schemas/DocumentVerificationImageSource"
          },
          "imageBack": {
            "$ref": "#/components/schemas/DocumentVerificationImageSource"
          },
          "imageBarcode": {
            "$ref": "#/components/schemas/DocumentVerificationImageSource"
          },
          "returnFullDocumentImage": {
            "type": "boolean",
            "nullable": true
          },
          "returnFaceImage": {
            "type": "boolean",
            "nullable": true
          },
          "returnSignatureImage": {
            "type": "boolean",
            "nullable": true
          },
          "returnSecurityFeaturesDocumentImage": {
            "type": "boolean",
            "nullable": true
          },
          "screenMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "photocopyMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "barcodeAnomalyMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "photoForgeryMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "staticSecurityFeaturesMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "anonymizationMode": {
            "$ref": "#/components/schemas/AnonymizationMode"
          },
          "dataMatchMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "verificationSideMode": {
            "$ref": "#/components/schemas/VerificationSideMode"
          },
          "imageFormat": {
            "$ref": "#/components/schemas/ImageFormat"
          },
          "treatExpirationAsFraud": {
            "type": "boolean",
            "nullable": true
          },
          "blurMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "glareMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "lightingMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "sharpnessMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "handOcclusionMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "dpiMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "tiltMatchLevel": {
            "$ref": "#/components/schemas/MatchLevel"
          },
          "imageQualityInterpretation": {
            "$ref": "#/components/schemas/ImageQualityInterpretation"
          },
          "traceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}