{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infinihash-com/json-schema/infinihash-com-closedloop-session-state-schema.json",
  "title": "ClosedloopSessionState",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infinihash-com-closedloop-api-openapi.yml#/components/schemas/ClosedloopSessionState",
  "type": "object",
  "properties": {
    "valid": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "expired",
        "invalid"
      ]
    },
    "expired": {
      "type": "boolean"
    },
    "handoff_url": {
      "type": "string",
      "description": "Only when valid: link into the KYC document + liveness flow."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "Only when valid."
    },
    "support_email": {
      "type": "string",
      "description": "Only when not valid."
    }
  },
  "required": [
    "valid",
    "status",
    "expired"
  ]
}