{
  "openapi": "3.1.0",
  "info": {
    "title": "Sovera Verify API",
    "description": "Sovereign identity verification API: **liveness**, **face-match**, **document**,\n**AML**, and **national-ID** checks, plus hosted verification **sessions**, with\nbiometric data processed and stored **inside Zimbabwe**.\n\nAuth: `Authorization: Bearer svk_live_...` (or `svk_test_...`), deny-by-default\nscopes. Writes require an `Idempotency-Key`. Errors are `application/problem+json`.\n\nThresholds are provisional pending in-house ROC calibration.",
    "contact": {
      "name": "Lioncap Ventures",
      "email": "panashe@lioncapventures.com"
    },
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://verify.lioncapventures.com",
      "description": "Sovera (interim)"
    },
    {
      "url": "http://localhost:8080",
      "description": "Local"
    }
  ],
  "paths": {
    "/health": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Response Health Health Get"
                }
              }
            }
          }
        }
      }
    },
    "/readiness": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Readiness",
        "description": "Report which optional subsystems are provisioned (models / vault / KYC).",
        "operationId": "readiness_readiness_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "title": "Response Readiness Readiness Get"
                }
              }
            }
          }
        }
      }
    },
    "/v1/verify/liveness": {
      "post": {
        "tags": [
          "verify"
        ],
        "summary": "Liveness",
        "operationId": "liveness_v1_verify_liveness_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LivenessRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivenessResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/verify/face-match": {
      "post": {
        "tags": [
          "verify"
        ],
        "summary": "Face Match",
        "operationId": "face_match_v1_verify_face_match_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FaceMatchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FaceMatchResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/verify": {
      "post": {
        "tags": [
          "verify"
        ],
        "summary": "Verify Combined",
        "operationId": "verify_combined_v1_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerifyResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/verify/active-liveness/challenge": {
      "post": {
        "tags": [
          "verify"
        ],
        "summary": "Active Liveness Challenge",
        "operationId": "active_liveness_challenge_v1_verify_active_liveness_challenge_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveLivenessChallenge"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/verify/active-liveness/verify": {
      "post": {
        "tags": [
          "verify"
        ],
        "summary": "Active Liveness Verify",
        "operationId": "active_liveness_verify_v1_verify_active_liveness_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActiveLivenessVerifyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveLivenessVerifyResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/verify/document": {
      "post": {
        "tags": [
          "verify"
        ],
        "summary": "Verify Document",
        "operationId": "verify_document_v1_verify_document_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentAck"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/verify/aml": {
      "post": {
        "tags": [
          "verify"
        ],
        "summary": "Verify Aml",
        "operationId": "verify_aml_v1_verify_aml_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AmlRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AmlResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/verify/id-validate": {
      "post": {
        "tags": [
          "verify"
        ],
        "summary": "Verify Id",
        "operationId": "verify_id_v1_verify_id_validate_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdValidateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdValidateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/sessions": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Create Session",
        "operationId": "create_session_v1_sessions_post",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SessionCreateRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{session_id}": {
      "get": {
        "tags": [
          "sessions"
        ],
        "summary": "Get Session",
        "operationId": "get_session_v1_sessions__session_id__get",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{session_id}/cancel": {
      "post": {
        "tags": [
          "sessions"
        ],
        "summary": "Cancel Session",
        "operationId": "cancel_session_v1_sessions__session_id__cancel_post",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/sessions/{session_id}/report": {
      "get": {
        "tags": [
          "sessions"
        ],
        "summary": "Session Report",
        "description": "Aggregated report (JSON). A signed PDF is a P2 deliverable.",
        "operationId": "session_report_v1_sessions__session_id__report_get",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Session Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consent": {
      "post": {
        "tags": [
          "consent"
        ],
        "summary": "Create Consent",
        "operationId": "create_consent_v1_consent_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsentCreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConsentResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/consent/{consent_id}/revoke": {
      "post": {
        "tags": [
          "consent"
        ],
        "summary": "Revoke Consent",
        "operationId": "revoke_consent_v1_consent__consent_id__revoke_post",
        "security": [
          {
            "ApiKey": []
          }
        ],
        "parameters": [
          {
            "name": "consent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Consent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/subjects/erase": {
      "post": {
        "tags": [
          "consent"
        ],
        "summary": "Erase Subject",
        "description": "DSAR erasure: soft-delete templates + media, revoke consents, and best-effort\nerase the token's PII in the vault (crypto-shredding the Fernet key version is\nthe irreversible companion step at the key-management layer).",
        "operationId": "erase_subject_v1_subjects_erase_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ErasureRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErasureResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "ActiveLivenessChallenge": {
        "properties": {
          "challengeId": {
            "type": "string",
            "title": "Challengeid"
          },
          "actions": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Actions"
          },
          "createdAt": {
            "type": "string",
            "title": "Createdat"
          }
        },
        "type": "object",
        "required": [
          "challengeId",
          "actions",
          "createdAt"
        ],
        "title": "ActiveLivenessChallenge"
      },
      "ActiveLivenessVerifyRequest": {
        "properties": {
          "challengeId": {
            "type": "string",
            "title": "Challengeid"
          },
          "actions": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actions"
          },
          "frames": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Frames",
            "description": "Base64-encoded frames in capture order"
          }
        },
        "type": "object",
        "required": [
          "challengeId",
          "frames"
        ],
        "title": "ActiveLivenessVerifyRequest"
      },
      "ActiveLivenessVerifyResponse": {
        "properties": {
          "passed": {
            "type": "boolean",
            "title": "Passed"
          },
          "score": {
            "type": "number",
            "title": "Score"
          },
          "detail": {
            "type": "object",
            "title": "Detail",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "passed",
          "score"
        ],
        "title": "ActiveLivenessVerifyResponse"
      },
      "AmlRequest": {
        "properties": {
          "fullName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fullname"
          },
          "firstName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Firstname"
          },
          "lastName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lastname"
          },
          "dob": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dob"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "idNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Idnumber"
          }
        },
        "type": "object",
        "title": "AmlRequest"
      },
      "AmlResponse": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          },
          "configured": {
            "type": "boolean",
            "title": "Configured"
          },
          "matches": {
            "items": {
              "type": "object"
            },
            "type": "array",
            "title": "Matches",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "status",
          "configured"
        ],
        "title": "AmlResponse"
      },
      "CheckSummary": {
        "properties": {
          "id": {
            "type": "string",
            "title": "Id"
          },
          "type": {
            "type": "string",
            "title": "Type"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Score"
          },
          "passed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Passed"
          },
          "reasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Reasons",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "id",
          "type",
          "status"
        ],
        "title": "CheckSummary"
      },
      "ConsentCreateRequest": {
        "properties": {
          "purpose": {
            "type": "string",
            "title": "Purpose"
          },
          "method": {
            "type": "string",
            "title": "Method",
            "default": "api"
          },
          "policyVersion": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Policyversion"
          },
          "subject": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "subjectToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjecttoken"
          },
          "sessionId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sessionid"
          }
        },
        "type": "object",
        "required": [
          "purpose"
        ],
        "title": "ConsentCreateRequest"
      },
      "ConsentResponse": {
        "properties": {
          "consentId": {
            "type": "string",
            "title": "Consentid"
          },
          "subjectToken": {
            "type": "string",
            "title": "Subjecttoken"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "grantedAt": {
            "type": "string",
            "format": "date-time",
            "title": "Grantedat"
          }
        },
        "type": "object",
        "required": [
          "consentId",
          "subjectToken",
          "status",
          "grantedAt"
        ],
        "title": "ConsentResponse"
      },
      "DocumentAck": {
        "properties": {
          "checkId": {
            "type": "string",
            "title": "Checkid"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "default": "processing"
          },
          "detail": {
            "type": "object",
            "title": "Detail",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "checkId"
        ],
        "title": "DocumentAck"
      },
      "DocumentRequest": {
        "properties": {
          "front": {
            "type": "string",
            "title": "Front",
            "description": "Base64-encoded front of the document"
          },
          "back": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Back"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "docType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Doctype"
          },
          "sessionId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sessionid"
          }
        },
        "type": "object",
        "required": [
          "front"
        ],
        "title": "DocumentRequest"
      },
      "ErasureRequest": {
        "properties": {
          "subjectToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subjecttoken"
          },
          "subject": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          }
        },
        "type": "object",
        "title": "ErasureRequest"
      },
      "ErasureResponse": {
        "properties": {
          "subjectToken": {
            "type": "string",
            "title": "Subjecttoken"
          },
          "erased": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Erased"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "default": "completed"
          }
        },
        "type": "object",
        "required": [
          "subjectToken",
          "erased"
        ],
        "title": "ErasureResponse"
      },
      "FaceMatchRequest": {
        "properties": {
          "selfie": {
            "type": "string",
            "title": "Selfie",
            "description": "Base64-encoded selfie"
          },
          "reference": {
            "type": "string",
            "title": "Reference",
            "description": "Base64-encoded reference/ID face"
          },
          "sessionId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sessionid"
          }
        },
        "type": "object",
        "required": [
          "selfie",
          "reference"
        ],
        "title": "FaceMatchRequest"
      },
      "FaceMatchResponse": {
        "properties": {
          "match": {
            "type": "boolean",
            "title": "Match"
          },
          "similarity": {
            "type": "number",
            "title": "Similarity"
          },
          "threshold": {
            "type": "number",
            "title": "Threshold"
          },
          "latencyMs": {
            "type": "integer",
            "title": "Latencyms"
          }
        },
        "type": "object",
        "required": [
          "match",
          "similarity",
          "threshold",
          "latencyMs"
        ],
        "title": "FaceMatchResponse"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "IdValidateRequest": {
        "properties": {
          "idNumber": {
            "type": "string",
            "title": "Idnumber"
          },
          "country": {
            "type": "string",
            "title": "Country",
            "default": "ZW"
          },
          "firstName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Firstname"
          },
          "lastName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lastname"
          },
          "dob": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dob"
          }
        },
        "type": "object",
        "required": [
          "idNumber"
        ],
        "title": "IdValidateRequest"
      },
      "IdValidateResponse": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          },
          "configured": {
            "type": "boolean",
            "title": "Configured"
          },
          "fields": {
            "type": "object",
            "title": "Fields",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "status",
          "configured"
        ],
        "title": "IdValidateResponse"
      },
      "LivenessRequest": {
        "properties": {
          "image": {
            "type": "string",
            "title": "Image",
            "description": "Base64-encoded image"
          },
          "sessionId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sessionid"
          }
        },
        "type": "object",
        "required": [
          "image"
        ],
        "title": "LivenessRequest"
      },
      "LivenessResponse": {
        "properties": {
          "isLive": {
            "type": "boolean",
            "title": "Islive"
          },
          "score": {
            "type": "number",
            "title": "Score"
          },
          "threshold": {
            "type": "number",
            "title": "Threshold"
          },
          "latencyMs": {
            "type": "integer",
            "title": "Latencyms"
          },
          "detail": {
            "type": "object",
            "title": "Detail",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "isLive",
          "score",
          "threshold",
          "latencyMs"
        ],
        "title": "LivenessResponse"
      },
      "SessionCreateRequest": {
        "properties": {
          "flow": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Flow"
          },
          "reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reference"
          },
          "subject": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subject"
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          },
          "redirectUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirecturl"
          }
        },
        "type": "object",
        "title": "SessionCreateRequest"
      },
      "SessionResponse": {
        "properties": {
          "sessionId": {
            "type": "string",
            "title": "Sessionid"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "flow": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Flow"
          },
          "clientToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Clienttoken"
          },
          "hostedUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hostedurl"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "title": "Expiresat"
          },
          "decision": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Decision"
          },
          "decisionReasons": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Decisionreasons",
            "default": []
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/CheckSummary"
            },
            "type": "array",
            "title": "Checks",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "sessionId",
          "status",
          "flow",
          "expiresAt"
        ],
        "title": "SessionResponse"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "VerifyRequest": {
        "properties": {
          "selfie": {
            "type": "string",
            "title": "Selfie"
          },
          "reference": {
            "type": "string",
            "title": "Reference"
          }
        },
        "type": "object",
        "required": [
          "selfie",
          "reference"
        ],
        "title": "VerifyRequest",
        "description": "Legacy combined selfie + reference (liveness + match in one call)."
      },
      "VerifyResponse": {
        "properties": {
          "isLive": {
            "type": "boolean",
            "title": "Islive"
          },
          "livenessScore": {
            "type": "number",
            "title": "Livenessscore"
          },
          "faceMatch": {
            "type": "boolean",
            "title": "Facematch"
          },
          "similarity": {
            "type": "number",
            "title": "Similarity"
          },
          "latencyMs": {
            "type": "integer",
            "title": "Latencyms"
          }
        },
        "type": "object",
        "required": [
          "isLive",
          "livenessScore",
          "faceMatch",
          "similarity",
          "latencyMs"
        ],
        "title": "VerifyResponse"
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}