{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/spliceforms/main/json-schema/spliceforms-otpchallenge-response-schema.json",
  "title": "OTPChallengeResponse",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spliceforms-auth-services-openapi.yml#/components/schemas/OTPChallengeResponse",
  "type": "object",
  "x-stoplight": {
    "id": "flc3tvrlwt18y"
  },
  "required": [
    "expiresAt",
    "session"
  ],
  "properties": {
    "expiresAt": {
      "description": "The timestamp when the OTP will expire",
      "x-unresolved-stoplight-ref": "stoplight://resources/overrides/fUrz7DdiN1w"
    },
    "remainingAttempts": {
      "type": "integer",
      "description": "The number of attempts remaining for the user to enter OTP",
      "format": "int32",
      "minimum": 0,
      "maximum": 5
    },
    "session": {
      "$ref": "#/$defs/OTPAuthSession"
    }
  },
  "$defs": {
    "OTPAuthSession": {
      "type": "string",
      "title": "OTPAuthSession",
      "description": "Encrypted string that contains OTP Auth session information",
      "pattern": "^.*$",
      "minLength": 1,
      "maxLength": 1000,
      "x-stoplight": {
        "id": "hlir38dud4lqd"
      }
    }
  }
}