{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisgeni-us/json-schema/whoisgeni-us-api-response-verify-token-response-schema.json",
  "title": "ApiResponse[VerifyTokenResponse]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisgeni-us-authentication-api-openapi.yml#/components/schemas/ApiResponse_VerifyTokenResponse_",
  "properties": {
    "data": {
      "anyOf": [
        {
          "$ref": "#/$defs/VerifyTokenResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "$ref": "#/$defs/ErrorDetail"
        },
        {
          "type": "null"
        }
      ]
    },
    "meta": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Meta"
    }
  },
  "type": "object",
  "$defs": {
    "ErrorDetail": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "details": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Details"
        }
      },
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "title": "ErrorDetail",
      "description": "Structured error information for API error responses.\n\nAttributes:\n    code: Machine-readable error code (e.g. \"JOB_NOT_FOUND\").\n    message: Human-readable error description.\n    details: Optional additional context for debugging."
    },
    "VerifyTokenResponse": {
      "properties": {
        "id_token": {
          "type": "string",
          "title": "Id Token"
        },
        "access_token": {
          "type": "string",
          "title": "Access Token"
        },
        "refresh_token": {
          "type": "string",
          "title": "Refresh Token"
        }
      },
      "type": "object",
      "required": [
        "id_token",
        "access_token",
        "refresh_token"
      ],
      "title": "VerifyTokenResponse",
      "description": "Cognito tokens returned after successful magic link verification."
    }
  }
}