{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scanverion-com/json-schema/scanverion-com-onboarding-participant-session-response-schema.json",
  "title": "OnboardingParticipantSessionResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scanverion-com-openapi.yml#/components/schemas/OnboardingParticipantSessionResponse",
  "required": [
    "sessionId",
    "flowVersion",
    "status",
    "definition",
    "values",
    "artifacts",
    "dataRevision",
    "expiresAt"
  ],
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "format": "uuid"
    },
    "flowVersion": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "status": {
      "type": "string"
    },
    "definition": {
      "$ref": "#/$defs/OnboardingFlowDefinition"
    },
    "values": {
      "type": "object"
    },
    "artifacts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OnboardingArtifactResponse"
      }
    },
    "dataRevision": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int64"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "pendingReturnUrl": {
      "type": [
        "null",
        "string"
      ]
    },
    "noticeAcceptances": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/OnboardingNoticeAcceptanceResponse"
      }
    },
    "documentAttempts": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/OnboardingDocumentAttemptResponse"
      }
    },
    "documentReviews": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/OnboardingDocumentReviewResponse"
      }
    },
    "documentReviewCandidates": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/OnboardingDocumentReviewCandidateResponse"
      }
    },
    "livenessAttempts": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/OnboardingLivenessAttemptResponse"
      }
    },
    "failureCode": {
      "type": [
        "null",
        "string"
      ]
    },
    "faceComparisons": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/OnboardingFaceComparisonResponse"
      }
    },
    "reviewDecision": {
      "type": [
        "null",
        "string"
      ]
    },
    "outcomeReturnUrl": {
      "type": [
        "null",
        "string"
      ]
    },
    "expiryReturnUrl": {
      "type": [
        "null",
        "string"
      ]
    },
    "reviewRequired": {
      "type": "boolean",
      "default": false
    }
  },
  "$defs": {
    "FaceComparisonBounds": {
      "required": [
        "left",
        "top",
        "width",
        "height"
      ],
      "type": "object",
      "properties": {
        "left": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "number",
            "string"
          ],
          "format": "double"
        },
        "top": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "number",
            "string"
          ],
          "format": "double"
        },
        "width": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "number",
            "string"
          ],
          "format": "double"
        },
        "height": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "number",
            "string"
          ],
          "format": "double"
        }
      }
    },
    "FaceComparisonFace": {
      "required": [
        "bounds",
        "landmarks"
      ],
      "type": "object",
      "properties": {
        "bounds": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/FaceComparisonBounds"
            }
          ]
        },
        "landmarks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FaceComparisonLandmark"
          }
        }
      }
    },
    "FaceComparisonLandmark": {
      "required": [
        "type",
        "x",
        "y"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "x": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "number",
            "string"
          ],
          "format": "double"
        },
        "y": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "number",
            "string"
          ],
          "format": "double"
        }
      }
    },
    "OnboardingAllowedDocument": {
      "required": [
        "type",
        "requireBack"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "requireBack": {
          "type": "boolean"
        }
      }
    },
    "OnboardingAppearanceOptions": {
      "type": "object",
      "properties": {
        "routeSlug": {
          "type": [
            "null",
            "string"
          ]
        },
        "pageTitle": {
          "type": [
            "null",
            "string"
          ]
        },
        "pageTitles": {
          "type": [
            "null",
            "object"
          ],
          "additionalProperties": {
            "type": "string"
          }
        },
        "light": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingThemePalette"
            }
          ]
        },
        "dark": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingThemePalette"
            }
          ]
        },
        "customCss": {
          "type": [
            "null",
            "string"
          ]
        },
        "theme": {
          "$ref": "#/$defs/OnboardingThemeMode"
        }
      },
      "additionalProperties": false
    },
    "OnboardingArtifactResponse": {
      "required": [
        "id",
        "stepId",
        "kind",
        "status",
        "contentType",
        "length",
        "collectedAt",
        "deleteAfter"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "stepId": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "contentType": {
          "type": "string"
        },
        "length": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int64"
        },
        "collectedAt": {
          "type": "string",
          "format": "date-time"
        },
        "deleteAfter": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "OnboardingBelowThresholdAction": {
      "type": "integer",
      "default": 0
    },
    "OnboardingBrandingOptions": {
      "required": [
        "logo",
        "logoAlt"
      ],
      "type": "object",
      "properties": {
        "logo": {
          "$ref": "#/$defs/OnboardingLogo"
        },
        "logoAlt": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "OnboardingDevicePolicy": {
      "type": "integer",
      "default": 0
    },
    "OnboardingDocumentAttemptResponse": {
      "required": [
        "attemptId",
        "stepId",
        "artifactId",
        "status",
        "scanStatus",
        "category",
        "documentType",
        "side",
        "fields",
        "startedAt",
        "completedAt",
        "errorCode"
      ],
      "type": "object",
      "properties": {
        "attemptId": {
          "type": "string",
          "format": "uuid"
        },
        "stepId": {
          "type": "string"
        },
        "artifactId": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string"
        },
        "scanStatus": {
          "type": [
            "null",
            "string"
          ]
        },
        "category": {
          "type": [
            "null",
            "string"
          ]
        },
        "documentType": {
          "type": [
            "null",
            "string"
          ]
        },
        "side": {
          "type": [
            "null",
            "string"
          ]
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "startedAt": {
          "type": "string",
          "format": "date-time"
        },
        "completedAt": {
          "type": [
            "null",
            "string"
          ],
          "format": "date-time"
        },
        "errorCode": {
          "type": [
            "null",
            "string"
          ]
        },
        "orientationDegrees": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "null",
            "number",
            "string"
          ],
          "format": "double"
        },
        "hasPreview": {
          "type": "boolean",
          "default": false
        }
      }
    },
    "OnboardingDocumentCaptureMode": {
      "type": "integer"
    },
    "OnboardingDocumentCaptureOptions": {
      "required": [
        "mode"
      ],
      "type": "object",
      "properties": {
        "mode": {
          "$ref": "#/$defs/OnboardingDocumentCaptureMode"
        },
        "autoOrient": {
          "type": [
            "null",
            "boolean"
          ]
        }
      }
    },
    "OnboardingDocumentFieldIssueResponse": {
      "required": [
        "field",
        "kind",
        "readings"
      ],
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "readings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OnboardingDocumentFieldReadingResponse"
          }
        }
      }
    },
    "OnboardingDocumentFieldReadingResponse": {
      "required": [
        "side",
        "value"
      ],
      "type": "object",
      "properties": {
        "side": {
          "type": [
            "null",
            "string"
          ]
        },
        "value": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "OnboardingDocumentFieldRule": {
      "required": [
        "field",
        "source",
        "compare"
      ],
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "compare": {
          "type": "boolean"
        }
      }
    },
    "OnboardingDocumentReviewCandidateResponse": {
      "required": [
        "stepId",
        "processingStepId",
        "captureStepId",
        "status",
        "attemptIds",
        "originals"
      ],
      "type": "object",
      "properties": {
        "stepId": {
          "type": "string"
        },
        "processingStepId": {
          "type": "string"
        },
        "captureStepId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "attemptIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "originals": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "documentType": {
          "type": [
            "null",
            "string"
          ]
        },
        "capturedSide": {
          "type": [
            "null",
            "string"
          ]
        },
        "requiredSide": {
          "type": [
            "null",
            "string"
          ]
        },
        "errorCode": {
          "type": [
            "null",
            "string"
          ]
        },
        "artifactId": {
          "type": [
            "null",
            "string"
          ],
          "format": "uuid"
        },
        "fieldIssues": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/OnboardingDocumentFieldIssueResponse"
          }
        },
        "category": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "OnboardingDocumentReviewResponse": {
      "required": [
        "stepId",
        "attemptIds",
        "values",
        "confirmedAt",
        "isCurrent"
      ],
      "type": "object",
      "properties": {
        "stepId": {
          "type": "string"
        },
        "attemptIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "values": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "confirmedAt": {
          "type": "string",
          "format": "date-time"
        },
        "isCurrent": {
          "type": "boolean"
        }
      }
    },
    "OnboardingDocumentSelection": {
      "required": [
        "catalogVersion",
        "category",
        "fields"
      ],
      "type": "object",
      "properties": {
        "catalogVersion": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "corrections": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/OnboardingFieldCorrectionRule"
          }
        },
        "allowedDocuments": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/OnboardingAllowedDocument"
          }
        },
        "requiredFields": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "type": "string"
          }
        },
        "fieldRules": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/OnboardingDocumentFieldRule"
          }
        }
      }
    },
    "OnboardingFaceComparisonOptions": {
      "type": "object",
      "properties": {
        "minimumSimilarity": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "null",
            "number",
            "string"
          ],
          "format": "double"
        },
        "belowThresholdAction": {
          "$ref": "#/$defs/OnboardingBelowThresholdAction"
        },
        "faceIdentification": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingFaceIdentificationOptions"
            }
          ]
        }
      }
    },
    "OnboardingFaceComparisonResponse": {
      "required": [
        "attemptId",
        "stepId",
        "status",
        "decision",
        "similarity",
        "isCurrent",
        "startedAt"
      ],
      "type": "object",
      "properties": {
        "attemptId": {
          "type": "string",
          "format": "uuid"
        },
        "stepId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "decision": {
          "type": [
            "null",
            "string"
          ]
        },
        "similarity": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "null",
            "number",
            "string"
          ],
          "format": "double"
        },
        "isCurrent": {
          "type": "boolean"
        },
        "startedAt": {
          "type": "string",
          "format": "date-time"
        },
        "errorCode": {
          "type": [
            "null",
            "string"
          ]
        },
        "minimumSimilarity": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "null",
            "number",
            "string"
          ],
          "format": "double"
        },
        "referenceFace": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/FaceComparisonFace"
            }
          ]
        },
        "candidateFace": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/FaceComparisonFace"
            }
          ]
        },
        "faceIdentificationStatus": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "OnboardingFaceIdentificationOptions": {
      "required": [
        "consentNoticeStepId",
        "acknowledgementId"
      ],
      "type": "object",
      "properties": {
        "consentNoticeStepId": {
          "type": "string"
        },
        "acknowledgementId": {
          "type": "string"
        }
      }
    },
    "OnboardingFieldCorrectionRule": {
      "required": [
        "field",
        "maxDistance",
        "ignoreDiacritics"
      ],
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "maxDistance": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "ignoreDiacritics": {
          "type": "boolean"
        }
      }
    },
    "OnboardingFlowDefinition": {
      "required": [
        "schemaVersion",
        "steps"
      ],
      "type": "object",
      "properties": {
        "schemaVersion": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "steps": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OnboardingStepDefinition"
          }
        },
        "devicePolicy": {
          "$ref": "#/$defs/OnboardingDevicePolicy"
        },
        "integrations": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingIntegrationOptions"
            }
          ]
        },
        "language": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingLanguageOptions"
            }
          ]
        },
        "branding": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingBrandingOptions"
            }
          ]
        },
        "manualReviewEnabled": {
          "type": "boolean",
          "default": true
        },
        "appearance": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingAppearanceOptions"
            }
          ]
        },
        "supportContact": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingSupportContact"
            }
          ]
        }
      }
    },
    "OnboardingFormFieldDefinition": {
      "required": [
        "id",
        "label",
        "type",
        "required"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/OnboardingFormFieldType"
        },
        "required": {
          "type": "boolean"
        },
        "maxLength": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "null",
            "integer",
            "string"
          ],
          "format": "int32"
        }
      }
    },
    "OnboardingFormFieldType": {
      "type": "integer"
    },
    "OnboardingIntegrationOptions": {
      "required": [
        "allowedOrigins"
      ],
      "type": "object",
      "properties": {
        "allowedOrigins": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "successReturnUrl": {
          "type": [
            "null",
            "string"
          ]
        },
        "failureReturnUrl": {
          "type": [
            "null",
            "string"
          ]
        },
        "pendingReturnUrl": {
          "type": [
            "null",
            "string"
          ]
        },
        "webhook": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingWebhookOptions"
            }
          ]
        },
        "webhooks": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/OnboardingWebhookOptions"
          }
        }
      }
    },
    "OnboardingLanguageMode": {
      "type": "integer"
    },
    "OnboardingLanguageOptions": {
      "required": [
        "mode",
        "defaultLanguage",
        "allowedLanguages"
      ],
      "type": "object",
      "properties": {
        "mode": {
          "$ref": "#/$defs/OnboardingLanguageMode"
        },
        "defaultLanguage": {
          "type": "string"
        },
        "allowedLanguages": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "OnboardingLivenessAttemptResponse": {
      "required": [
        "attemptId",
        "stepId",
        "status",
        "isCurrent",
        "startedAt"
      ],
      "type": "object",
      "properties": {
        "attemptId": {
          "type": "string",
          "format": "uuid"
        },
        "stepId": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "isCurrent": {
          "type": "boolean"
        },
        "startedAt": {
          "type": "string",
          "format": "date-time"
        },
        "policyVersion": {
          "type": [
            "null",
            "string"
          ]
        },
        "decision": {
          "type": [
            "null",
            "string"
          ]
        },
        "confidence": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
          "type": [
            "null",
            "number",
            "string"
          ],
          "format": "double"
        },
        "reviewRequired": {
          "type": "boolean",
          "default": true
        },
        "credits": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "number",
            "string"
          ],
          "format": "double",
          "default": 0
        },
        "completedAt": {
          "type": [
            "null",
            "string"
          ],
          "format": "date-time"
        },
        "capture": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingLivenessCaptureResponse"
            }
          ]
        },
        "errorCode": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "OnboardingLivenessCaptureResponse": {
      "required": [
        "captureSessionId",
        "region",
        "identityPoolId",
        "expiresAt"
      ],
      "type": "object",
      "properties": {
        "captureSessionId": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "identityPoolId": {
          "type": "string"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "OnboardingLivenessOptions": {
      "type": "object",
      "properties": {
        "minimumConfidence": {
          "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
          "type": [
            "null",
            "number",
            "string"
          ],
          "format": "double"
        },
        "belowThresholdAction": {
          "$ref": "#/$defs/OnboardingBelowThresholdAction"
        }
      }
    },
    "OnboardingLogo": {
      "required": [
        "dataUrl",
        "width",
        "height"
      ],
      "type": "object",
      "properties": {
        "dataUrl": {
          "type": "string"
        },
        "width": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "height": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "OnboardingNoticeAcceptanceResponse": {
      "required": [
        "stepId",
        "flowVersion",
        "language",
        "acceptedAt",
        "acknowledgementIds"
      ],
      "type": "object",
      "properties": {
        "stepId": {
          "type": "string"
        },
        "flowVersion": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "format": "int32"
        },
        "language": {
          "type": "string"
        },
        "acceptedAt": {
          "type": "string",
          "format": "date-time"
        },
        "acknowledgementIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "OnboardingNoticeAcknowledgement": {
      "required": [
        "id",
        "label",
        "required"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "required": {
          "type": "boolean"
        }
      }
    },
    "OnboardingNoticeOptions": {
      "required": [
        "body"
      ],
      "type": "object",
      "properties": {
        "body": {
          "type": "string"
        },
        "privacyUrl": {
          "type": [
            "null",
            "string"
          ]
        },
        "privacyLabel": {
          "type": [
            "null",
            "string"
          ]
        },
        "continueLabel": {
          "type": [
            "null",
            "string"
          ]
        },
        "acknowledgements": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/OnboardingNoticeAcknowledgement"
          }
        }
      }
    },
    "OnboardingNoticeTranslation": {
      "type": "object",
      "properties": {
        "body": {
          "type": [
            "null",
            "string"
          ]
        },
        "privacyLabel": {
          "type": [
            "null",
            "string"
          ]
        },
        "continueLabel": {
          "type": [
            "null",
            "string"
          ]
        },
        "acknowledgements": {
          "type": [
            "null",
            "object"
          ],
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "OnboardingOutcomeMessage": {
      "required": [
        "title",
        "body"
      ],
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "body": {
          "type": "string"
        }
      }
    },
    "OnboardingOutcomeOptions": {
      "type": "object",
      "properties": {
        "pending": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingOutcomeMessage"
            }
          ]
        },
        "success": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingOutcomeMessage"
            }
          ]
        },
        "failure": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingOutcomeMessage"
            }
          ]
        },
        "inconclusive": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingOutcomeMessage"
            }
          ]
        },
        "returnLabel": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "OnboardingStepDefinition": {
      "required": [
        "id",
        "kind",
        "title",
        "required",
        "inputs",
        "outputs"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/OnboardingStepKind"
        },
        "title": {
          "type": "string"
        },
        "required": {
          "type": "boolean"
        },
        "inputs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "outputs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "fields": {
          "type": [
            "null",
            "array"
          ],
          "items": {
            "$ref": "#/$defs/OnboardingFormFieldDefinition"
          }
        },
        "document": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingDocumentSelection"
            }
          ]
        },
        "capture": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingDocumentCaptureOptions"
            }
          ]
        },
        "notice": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingNoticeOptions"
            }
          ]
        },
        "faceComparison": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingFaceComparisonOptions"
            }
          ]
        },
        "outcome": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingOutcomeOptions"
            }
          ]
        },
        "translations": {
          "type": [
            "null",
            "object"
          ],
          "additionalProperties": {
            "$ref": "#/$defs/OnboardingStepTranslation"
          }
        },
        "liveness": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingLivenessOptions"
            }
          ]
        }
      }
    },
    "OnboardingStepKind": {
      "type": "integer"
    },
    "OnboardingStepTranslation": {
      "type": "object",
      "properties": {
        "title": {
          "type": [
            "null",
            "string"
          ]
        },
        "fieldLabels": {
          "type": [
            "null",
            "object"
          ],
          "additionalProperties": {
            "type": "string"
          }
        },
        "notice": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingNoticeTranslation"
            }
          ]
        },
        "outcome": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/OnboardingOutcomeOptions"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "OnboardingSupportContact": {
      "type": "object",
      "properties": {
        "email": {
          "type": [
            "null",
            "string"
          ]
        },
        "phone": {
          "type": [
            "null",
            "string"
          ]
        }
      },
      "additionalProperties": false
    },
    "OnboardingThemeMode": {
      "type": "integer",
      "default": 0
    },
    "OnboardingThemePalette": {
      "required": [
        "background",
        "surface",
        "text",
        "muted",
        "primary",
        "primaryText",
        "border"
      ],
      "type": "object",
      "properties": {
        "background": {
          "type": "string"
        },
        "surface": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "muted": {
          "type": "string"
        },
        "primary": {
          "type": "string"
        },
        "primaryText": {
          "type": "string"
        },
        "border": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "OnboardingWebhookOptions": {
      "required": [
        "url",
        "events"
      ],
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "events": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "id": {
          "type": [
            "null",
            "string"
          ],
          "format": "uuid"
        }
      }
    }
  }
}