{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-voice-biometric-result-response-schema.json",
  "title": "VoiceBiometricResultResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-voicebiometrichub-openapi.yml#/components/schemas/VoiceBiometricResultResponse",
  "type": "object",
  "required": [
    "personId",
    "contactId",
    "branchName",
    "voiceBioResult"
  ],
  "properties": {
    "personId": {
      "type": "string",
      "description": "Unique identifier for the person"
    },
    "contactId": {
      "type": "integer",
      "format": "int64",
      "description": "Contact identifier"
    },
    "branchName": {
      "type": "string",
      "description": "Branch name indicating the result status"
    },
    "voiceBioResult": {
      "type": "integer",
      "enum": [
        0,
        1,
        2,
        3
      ],
      "description": "Result of the voice biometric operation (integer enum): 0 = Success, 1 = Failure, 2 = NeedMoreAudio, 3 = Error"
    },
    "decisionType": {
      "type": [
        "string",
        "null"
      ],
      "description": "Type of decision made during the voice biometric operation (e.g., Authenticated, NotAuthenticated, Enrolled)"
    },
    "scriptParamsJson": {
      "type": [
        "object",
        "null"
      ],
      "description": "Additional result parameters",
      "additionalProperties": true
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional message providing additional context"
    }
  }
}