{
  "openapi": "3.1.0",
  "info": {
    "title": "LegiChain V3 — compute",
    "description": "LegiChain V3 regional API. Metadata uses API; applicant bytes use assigned compute; manual evidence uses media.",
    "version": "3.0.0"
  },
  "paths": {
    "/healthz/live": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Live",
        "operationId": "compute_get_healthz_live",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiLive"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "x-authentication": "public",
        "x-audience": "customer"
      }
    },
    "/healthz/ready": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Ready",
        "operationId": "compute_get_healthz_ready",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiReady"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [],
        "x-authentication": "public",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/files/{logical_key}": {
      "put": {
        "tags": [
          "direct-upload"
        ],
        "summary": "Upload",
        "operationId": "compute_put_compute_onboardings_onboarding_id_files_logical_key",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          },
          {
            "name": "logical_key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Logical Key"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Kind"
            }
          },
          {
            "name": "challenge_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Challenge Id"
            }
          },
          {
            "name": "document_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Document Type"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiUploadReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "requestBody": {
          "required": true,
          "description": "Raw bytes, never multipart. Format must match the evidence kind. application/octet-stream is allowed only for exact recovery of previously accepted abandoned capture. File/session budgets are enforced before processing; keep the same logical key for an identical retry.",
          "content": {
            "image/jpeg": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "image/png": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "application/json": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "application/pdf": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "video/mp4": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "video/webm": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "Status",
        "operationId": "compute_get_compute_onboardings_onboarding_id",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiComputeStatus"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/bundle/address": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Bundle Address",
        "operationId": "compute_post_compute_onboardings_onboarding_id_bundle_address",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BundleAddressRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAddressReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/capture-state": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "Capture State",
        "description": "Scoped device metadata for a guided flow; no storage URLs or global PII.",
        "operationId": "compute_get_compute_onboardings_onboarding_id_capture_state",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCaptureState"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/interview/start": {
      "post": {
        "tags": [
          "ai-interview"
        ],
        "summary": "Start",
        "operationId": "compute_post_compute_onboardings_onboarding_id_interview_start",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiInterviewStart"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/prompts/{step_id}": {
      "get": {
        "tags": [
          "ai-interview"
        ],
        "summary": "Prompt",
        "operationId": "compute_get_compute_onboardings_onboarding_id_prompts_step_id",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          },
          {
            "name": "step_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Step Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Prepared question or feedback audio; use the compute token in Authorization.",
            "content": {
              "audio/wav": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/liveness/challenge": {
      "post": {
        "tags": [
          "kyc"
        ],
        "summary": "Challenge",
        "operationId": "compute_post_compute_onboardings_onboarding_id_liveness_challenge",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiLivenessChallenge"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/capture/chunks/{sequence}": {
      "put": {
        "tags": [
          "ai-interview"
        ],
        "summary": "Chunk Upload",
        "operationId": "compute_put_compute_onboardings_onboarding_id_capture_chunks_sequence",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          },
          {
            "name": "sequence",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Sequence"
            }
          },
          {
            "name": "start_ms",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Start Ms"
            }
          },
          {
            "name": "end_ms",
            "in": "query",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "End Ms"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiChunkReceipt"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "requestBody": {
          "required": true,
          "description": "Contiguous new bytes from one recorder, at most 8 MiB per chunk. Sequence/timestamps are immutable; do not resend the cumulative recording.",
          "content": {
            "video/webm": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "video/mp4": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/answers": {
      "post": {
        "tags": [
          "ai-interview"
        ],
        "summary": "Answer Submit",
        "operationId": "compute_post_compute_onboardings_onboarding_id_answers",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnswerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAnswer"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/photo-step": {
      "post": {
        "tags": [
          "ai-interview"
        ],
        "summary": "Photo Step",
        "operationId": "compute_post_compute_onboardings_onboarding_id_photo_step",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PhotoStep"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAnswer"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/answers/{answer_id}": {
      "get": {
        "tags": [
          "ai-interview"
        ],
        "summary": "Answer Status",
        "operationId": "compute_get_compute_onboardings_onboarding_id_answers_answer_id",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          },
          {
            "name": "answer_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Answer Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiAnswer"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    },
    "/compute/onboardings/{onboarding_id}/capture/end": {
      "post": {
        "tags": [
          "ai-interview"
        ],
        "summary": "Capture End",
        "operationId": "compute_post_compute_onboardings_onboarding_id_capture_end",
        "parameters": [
          {
            "name": "onboarding_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Onboarding Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaptureEnd"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiCaptureEnd"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error400"
          },
          "401": {
            "$ref": "#/components/responses/Error401"
          },
          "402": {
            "$ref": "#/components/responses/Error402"
          },
          "403": {
            "$ref": "#/components/responses/Error403"
          },
          "404": {
            "$ref": "#/components/responses/Error404"
          },
          "405": {
            "$ref": "#/components/responses/Error405"
          },
          "409": {
            "$ref": "#/components/responses/Error409"
          },
          "410": {
            "$ref": "#/components/responses/Error410"
          },
          "413": {
            "$ref": "#/components/responses/Error413"
          },
          "415": {
            "$ref": "#/components/responses/Error415"
          },
          "422": {
            "$ref": "#/components/responses/Error422"
          },
          "429": {
            "$ref": "#/components/responses/Error429"
          },
          "500": {
            "$ref": "#/components/responses/Error500"
          },
          "502": {
            "$ref": "#/components/responses/Error502"
          },
          "503": {
            "$ref": "#/components/responses/Error503"
          }
        },
        "security": [
          {
            "ComputeToken": []
          }
        ],
        "x-authentication": "compute",
        "x-audience": "customer"
      }
    }
  },
  "components": {
    "schemas": {
      "AnswerRequest": {
        "properties": {
          "step_id": {
            "type": "string",
            "maxLength": 64,
            "title": "Step Id"
          },
          "attempt": {
            "type": "integer",
            "maximum": 3.0,
            "minimum": 1.0,
            "title": "Attempt"
          },
          "start_ms": {
            "type": "integer",
            "minimum": 0.0,
            "title": "Start Ms"
          },
          "end_ms": {
            "type": "integer",
            "maximum": 1200000.0,
            "exclusiveMinimum": 0.0,
            "title": "End Ms"
          },
          "chunk_sequence": {
            "type": "integer",
            "maximum": 1200.0,
            "minimum": 0.0,
            "title": "Chunk Sequence"
          },
          "spelling": {
            "type": "boolean",
            "title": "Spelling",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "step_id",
          "attempt",
          "start_ms",
          "end_ms",
          "chunk_sequence"
        ],
        "title": "AnswerRequest"
      },
      "BundleAddressRequest": {
        "properties": {
          "country": {
            "type": "string",
            "pattern": "^[A-Za-z]{2}$",
            "title": "Country"
          },
          "claimed_address": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "maxProperties": 10,
            "minProperties": 1,
            "title": "Claimed Address"
          },
          "official_verification": {
            "type": "boolean",
            "title": "Official Verification",
            "default": false
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "country",
          "claimed_address"
        ],
        "title": "BundleAddressRequest"
      },
      "CaptureEnd": {
        "properties": {
          "last_sequence": {
            "type": "integer",
            "maximum": 1200.0,
            "minimum": 0.0,
            "title": "Last Sequence"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "last_sequence"
        ],
        "title": "CaptureEnd"
      },
      "PhotoStep": {
        "properties": {
          "step_id": {
            "type": "string",
            "title": "Step Id"
          },
          "evidence_id": {
            "type": "string",
            "title": "Evidence Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "step_id",
          "evidence_id"
        ],
        "title": "PhotoStep"
      },
      "CustomerFlowDefinitionCapability": {
        "enum": [
          "INFO",
          "MIC_CHECK",
          "FULL_NAME",
          "DOB",
          "CITY",
          "PARENT_NAME",
          "HOLD_ID",
          "CONSENT",
          "YES_NO",
          "AFFIRMATION",
          "SHORT_TEXT",
          "IDENTITY_FIELD"
        ],
        "title": "Capability",
        "type": "string"
      },
      "CustomerFlowDefinitionFlowStep": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "pattern": "^[a-z][a-z0-9_]{0,47}$",
            "title": "Id",
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/CustomerFlowDefinitionCapability"
          },
          "prompt": {
            "maxLength": 600,
            "minLength": 1,
            "title": "Prompt",
            "type": "string"
          },
          "audio_asset_id": {
            "maxLength": 180,
            "minLength": 1,
            "title": "Audio Asset Id",
            "type": "string"
          },
          "reference_fields": {
            "default": [],
            "items": {
              "type": "string"
            },
            "title": "Reference Fields",
            "type": "array"
          },
          "max_attempts": {
            "default": 2,
            "maximum": 3,
            "minimum": 1,
            "title": "Max Attempts",
            "type": "integer"
          },
          "max_answer_seconds": {
            "default": 10,
            "maximum": 30,
            "minimum": 1,
            "title": "Max Answer Seconds",
            "type": "integer"
          },
          "required_photo": {
            "default": false,
            "title": "Required Photo",
            "type": "boolean"
          },
          "photo_side": {
            "default": "any",
            "enum": [
              "any",
              "front",
              "back"
            ],
            "title": "Photo Side",
            "type": "string"
          },
          "feedback": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "string"
              },
              "propertyNames": {
                "enum": [
                  "tr-TR",
                  "en-US",
                  "de-DE",
                  "es-ES",
                  "it-IT"
                ]
              },
              "type": "object"
            },
            "propertyNames": {
              "enum": [
                "no_speech",
                "unclear",
                "mismatch",
                "cannot_hear",
                "explicit_acceptance"
              ]
            },
            "title": "Feedback",
            "type": "object"
          },
          "explicit_acceptance": {
            "default": false,
            "title": "Explicit Acceptance",
            "type": "boolean"
          },
          "expected_answer": {
            "default": "YES",
            "enum": [
              "YES",
              "NO"
            ],
            "title": "Expected Answer",
            "type": "string"
          },
          "response_intent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerFlowDefinitionResponseIntent"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "expected_texts": {
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "enum": [
                "tr-TR",
                "en-US",
                "de-DE",
                "es-ES",
                "it-IT"
              ]
            },
            "title": "Expected Texts",
            "type": "object"
          },
          "expected_variants": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "propertyNames": {
              "enum": [
                "tr-TR",
                "en-US",
                "de-DE",
                "es-ES",
                "it-IT"
              ]
            },
            "title": "Expected Variants",
            "type": "object"
          }
        },
        "required": [
          "id",
          "kind",
          "prompt",
          "audio_asset_id"
        ],
        "title": "FlowStep",
        "type": "object"
      },
      "CustomerFlowDefinitionResponseIntent": {
        "enum": [
          "YES",
          "NO",
          "APPROVE",
          "DISAPPROVE",
          "ACCEPT",
          "REFUSE",
          "DO",
          "DONT"
        ],
        "title": "ResponseIntent",
        "type": "string"
      },
      "CustomerFlowDefinition": {
        "additionalProperties": false,
        "properties": {
          "version": {
            "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,79}$",
            "title": "Version",
            "type": "string"
          },
          "locale": {
            "default": "tr-TR",
            "enum": [
              "tr-TR",
              "en-US",
              "de-DE",
              "es-ES",
              "it-IT"
            ],
            "title": "Locale",
            "type": "string"
          },
          "translations": {
            "additionalProperties": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "propertyNames": {
              "enum": [
                "tr-TR",
                "en-US",
                "de-DE",
                "es-ES",
                "it-IT"
              ]
            },
            "title": "Translations",
            "type": "object"
          },
          "steps": {
            "items": {
              "$ref": "#/components/schemas/CustomerFlowDefinitionFlowStep"
            },
            "maxItems": 30,
            "minItems": 3,
            "title": "Steps",
            "type": "array"
          },
          "maximum_recording_seconds": {
            "default": 600,
            "maximum": 1200,
            "minimum": 60,
            "title": "Maximum Recording Seconds",
            "type": "integer"
          },
          "standard": {
            "default": false,
            "title": "Standard",
            "type": "boolean"
          },
          "audio_profile_digest": {
            "anyOf": [
              {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Audio Profile Digest"
          }
        },
        "required": [
          "version",
          "steps"
        ],
        "title": "FlowDefinition",
        "type": "object"
      },
      "CustomerIdentityFieldProofLevel": {
        "enum": [
          "read",
          "checksum",
          "document_verified",
          "chip_authenticated",
          "official_source"
        ],
        "title": "ProofLevel",
        "type": "string"
      },
      "CustomerIdentityField": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          },
          "source": {
            "title": "Source",
            "type": "string"
          },
          "evidence_id": {
            "title": "Evidence Id",
            "type": "string"
          },
          "proof": {
            "$ref": "#/components/schemas/CustomerIdentityFieldProofLevel",
            "default": "read"
          },
          "confidence": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Confidence"
          },
          "verified": {
            "default": false,
            "title": "Verified",
            "type": "boolean"
          },
          "authenticated_dg": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Authenticated Dg"
          },
          "validation_status": {
            "default": "unchecked",
            "title": "Validation Status",
            "type": "string"
          }
        },
        "required": [
          "name",
          "value",
          "source",
          "evidence_id"
        ],
        "title": "FieldEvidence",
        "type": "object"
      },
      "CustomerPolicySnapshot": {
        "additionalProperties": true,
        "properties": {
          "min_doc_confidence": {
            "default": 0.75,
            "maximum": 1,
            "minimum": 0,
            "title": "Min Doc Confidence",
            "type": "number"
          },
          "nfc_required": {
            "default": false,
            "title": "Nfc Required",
            "type": "boolean"
          },
          "face_match_required": {
            "default": true,
            "title": "Face Match Required",
            "type": "boolean"
          },
          "liveness_required": {
            "default": true,
            "title": "Liveness Required",
            "type": "boolean"
          },
          "active_challenge_required": {
            "default": false,
            "title": "Active Challenge Required",
            "type": "boolean"
          },
          "manual_review_enabled": {
            "default": true,
            "title": "Manual Review Enabled",
            "type": "boolean"
          },
          "ai_manual_fallback_enabled": {
            "default": false,
            "title": "Ai Manual Fallback Enabled",
            "type": "boolean"
          },
          "approve_max": {
            "default": 16,
            "maximum": 100,
            "minimum": 0,
            "title": "Approve Max",
            "type": "number"
          },
          "review_max": {
            "default": 25,
            "maximum": 100,
            "minimum": 0,
            "title": "Review Max",
            "type": "number"
          },
          "version": {
            "type": "string"
          }
        },
        "title": "Policy",
        "type": "object",
        "description": "Server-owned versioned verification policy captured when the session was created."
      },
      "CustomerJsonValue": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "type": "null"
          },
          {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerJsonValue"
            }
          },
          {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/CustomerJsonValue"
            }
          }
        ]
      },
      "CustomerQuote": {
        "type": "object",
        "properties": {
          "catalog_version": {
            "type": "string"
          },
          "plan_code": {
            "type": "string"
          },
          "retention_years": {
            "type": "string"
          },
          "processing_credits": {
            "type": "integer"
          },
          "retention_credits": {
            "type": "integer"
          },
          "total_credits": {
            "type": "integer"
          },
          "included_products": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "interview_mode": {
            "type": "string"
          },
          "discount_credits": {
            "type": "integer"
          },
          "selected_services": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "catalog_version",
          "plan_code",
          "retention_years",
          "processing_credits",
          "retention_credits",
          "total_credits",
          "included_products",
          "interview_mode",
          "discount_credits"
        ],
        "additionalProperties": true
      },
      "CustomerBundleResult": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "product": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "input_required": {
            "type": "boolean"
          },
          "complete": {
            "type": "boolean"
          },
          "error_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "product",
          "status",
          "input_required",
          "complete",
          "error_code"
        ],
        "additionalProperties": true
      },
      "CustomerRecapture": {
        "type": "object",
        "properties": {
          "attempt": {
            "type": "integer"
          },
          "required_kinds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "attempt",
          "required_kinds"
        ],
        "additionalProperties": true
      },
      "CustomerPhotoFraudSummary": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": true
      },
      "CustomerSession": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "persona_id": {
            "type": "string"
          },
          "workspace_id": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "kyc_status": {
            "type": "string"
          },
          "product": {
            "type": "string"
          },
          "interview_mode": {
            "type": "string"
          },
          "current_step": {
            "type": "integer"
          },
          "interview_locale": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "bundled_products": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "capture_status": {
            "type": "string"
          },
          "quote": {
            "$ref": "#/components/schemas/CustomerQuote"
          },
          "retention_years": {
            "type": "number"
          },
          "billed": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "revision": {
            "type": "integer"
          },
          "closed_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "purge_due_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "purged_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ]
          },
          "bundled_results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerBundleResult"
            }
          },
          "bundle_ready": {
            "type": "boolean"
          },
          "recapture": {
            "$ref": "#/components/schemas/CustomerRecapture"
          },
          "fields": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/CustomerIdentityField"
            }
          },
          "result": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/CustomerJsonValue"
            }
          },
          "policy": {
            "$ref": "#/components/schemas/CustomerPolicySnapshot"
          },
          "fraud": {
            "$ref": "#/components/schemas/CustomerPhotoFraudSummary"
          },
          "flow": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CustomerFlowDefinition"
              },
              {
                "type": "object",
                "maxProperties": 0
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "persona_id",
          "workspace_id",
          "state",
          "kyc_status",
          "product",
          "interview_mode",
          "current_step",
          "interview_locale",
          "bundled_products",
          "services",
          "capture_status",
          "quote",
          "retention_years",
          "billed",
          "created_at",
          "revision",
          "closed_at",
          "purge_due_at",
          "purged_at"
        ],
        "additionalProperties": true,
        "description": "A regional session. fields/result/policy/flow require pii:read and retained evidence; their absence does not imply a successful verification. quote is frozen for this session."
      },
      "ApiLive": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "role": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "region",
          "role"
        ],
        "additionalProperties": true
      },
      "ApiReady": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "region": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "region"
        ],
        "additionalProperties": true
      },
      "ApiUploadReceipt": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "accepted": {
            "type": "boolean"
          },
          "bytes": {
            "type": "integer"
          },
          "billed": {
            "type": "boolean"
          },
          "state": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "accepted",
          "bytes",
          "billed",
          "state"
        ],
        "additionalProperties": true
      },
      "ApiAddressReceipt": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "product": {
            "const": "address"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "product",
          "status"
        ],
        "additionalProperties": true
      },
      "ApiAnswerDecision": {
        "anyOf": [
          {
            "type": "object",
            "maxProperties": 0
          },
          {
            "type": "object",
            "properties": {
              "decision": {
                "enum": [
                  "PASS",
                  "RETRY",
                  "REVIEW",
                  "DECLINED",
                  "PENDING_FINAL"
                ]
              },
              "reason": {
                "type": "string"
              },
              "canonical": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "identity_verification": {
                "enum": [
                  "pending_final",
                  "not_applicable"
                ]
              },
              "feedback": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "decision",
              "reason"
            ],
            "additionalProperties": true
          }
        ]
      },
      "ApiAnswer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "decision": {
            "$ref": "#/components/schemas/ApiAnswerDecision"
          },
          "current_step": {
            "type": "integer"
          },
          "capture_status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status"
        ],
        "additionalProperties": true
      },
      "ApiReupload": {
        "type": "object",
        "properties": {
          "evidence_id": {
            "type": "string"
          },
          "logical_key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          },
          "bytes": {
            "type": "integer"
          },
          "chunk_sequence": {
            "type": "integer"
          },
          "start_ms": {
            "type": "integer"
          },
          "end_ms": {
            "type": "integer"
          }
        },
        "required": [
          "evidence_id",
          "logical_key",
          "kind",
          "content_type",
          "sha256",
          "bytes"
        ],
        "additionalProperties": true
      },
      "ApiComputeStatus": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CustomerSession"
          },
          {
            "type": "object",
            "properties": {
              "reupload_required": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ApiReupload"
                }
              }
            },
            "required": [
              "reupload_required"
            ],
            "additionalProperties": true
          }
        ]
      },
      "ApiCaptureState": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CustomerSession"
          },
          {
            "type": "object",
            "properties": {
              "policy": {
                "$ref": "#/components/schemas/CustomerPolicySnapshot"
              },
              "evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "logical_key": {
                      "type": "string"
                    },
                    "processed": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string"
                    },
                    "document_type": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "kind",
                    "logical_key",
                    "processed",
                    "status",
                    "document_type"
                  ],
                  "additionalProperties": true
                }
              },
              "answers": {
                "type": "array",
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ApiAnswer"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "step_id": {
                          "type": "string"
                        },
                        "attempt": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "step_id",
                        "attempt"
                      ],
                      "additionalProperties": true
                    }
                  ]
                }
              },
              "capture": {
                "type": "object",
                "properties": {
                  "next_sequence": {
                    "type": "integer"
                  },
                  "end_ms": {
                    "type": "integer"
                  },
                  "ended": {
                    "type": "boolean"
                  },
                  "can_finish": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "next_sequence",
                  "end_ms",
                  "ended",
                  "can_finish"
                ],
                "additionalProperties": true
              },
              "nfc_mrz": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "policy",
              "evidence",
              "answers",
              "capture",
              "nfc_mrz"
            ],
            "additionalProperties": true
          }
        ]
      },
      "ApiInterviewStart": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "flow": {
            "$ref": "#/components/schemas/CustomerFlowDefinition"
          },
          "current_step": {
            "type": "integer"
          },
          "flow_digest": {
            "type": "string"
          },
          "capture_status": {
            "type": "string"
          },
          "prompt_urls": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "state",
          "flow",
          "current_step",
          "flow_digest",
          "capture_status",
          "prompt_urls"
        ],
        "additionalProperties": true
      },
      "ApiLivenessChallenge": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "actions": {
            "type": "array",
            "items": {
              "enum": [
                "blink",
                "head_left",
                "head_right"
              ]
            }
          },
          "issued_at": {
            "type": "string",
            "format": "date-time"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "actions",
          "issued_at",
          "expires_at"
        ],
        "additionalProperties": true
      },
      "ApiChunkReceipt": {
        "type": "object",
        "properties": {
          "sequence": {
            "type": "integer"
          },
          "accepted": {
            "type": "boolean"
          },
          "next_sequence": {
            "type": "integer"
          }
        },
        "required": [
          "sequence",
          "accepted",
          "next_sequence"
        ],
        "additionalProperties": true
      },
      "ApiCaptureEnd": {
        "type": "object",
        "properties": {
          "capture_status": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        },
        "required": [
          "capture_status",
          "state"
        ],
        "additionalProperties": true
      },
      "ApiValidationIssue": {
        "type": "object",
        "properties": {
          "loc": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            }
          },
          "msg": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "additionalProperties": true
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "details": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/CustomerJsonValue"
            }
          }
        },
        "required": [
          "code",
          "message"
        ],
        "additionalProperties": true
      },
      "ApiErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ApiError"
          },
          "detail": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ApiValidationIssue"
            }
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": true
      }
    },
    "securitySchemes": {
      "ComputeToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "Assignment-bound compute JWT; use only the HTTPS origin returned by claim/reconnect.",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "Error400": {
        "description": "Malformed request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error401": {
        "description": "Authentication required or expired",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        },
        "headers": {
          "WWW-Authenticate": {
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "Error402": {
        "description": "Credit authority unavailable",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error403": {
        "description": "Scope or permission denied",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error404": {
        "description": "Not found or unavailable",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error405": {
        "description": "Method not allowed",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error409": {
        "description": "State, revision or idempotency conflict",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error410": {
        "description": "Retention expired",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error413": {
        "description": "Request exceeds byte budget",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error415": {
        "description": "Unsupported media type",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error422": {
        "description": "Invalid fields or business input",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error429": {
        "description": "Rate or admission limit",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        },
        "headers": {
          "Retry-After": {
            "description": "Optional server-specified delay in seconds; do not retry a non-idempotent mutation with a new key.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        }
      },
      "Error500": {
        "description": "Internal error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error502": {
        "description": "Invalid upstream response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        }
      },
      "Error503": {
        "description": "Dependency or capacity temporarily unavailable",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiErrorResponse"
            }
          }
        },
        "headers": {
          "Retry-After": {
            "description": "Optional server-specified delay in seconds; do not retry a non-idempotent mutation with a new key.",
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          }
        }
      }
    }
  },
  "webhooks": {},
  "x-contract-version": "2026-11-04.fraud52",
  "x-compatibility": "V3 additions are additive; unknown response properties must be tolerated. Idempotent input snapshots and billed attempts remain immutable. No V2 wire compatibility is implied."
}
