33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
components:
|
|
schemas:
|
|
VerificationResponseData:
|
|
description: Response data returned after requesting a verification code.
|
|
type: object
|
|
additionalProperties: false
|
|
required:
|
|
- idempotencyKey
|
|
- ttl_seconds
|
|
- cooldown_seconds
|
|
- target
|
|
properties:
|
|
idempotencyKey:
|
|
description: Idempotency key associated with the verification request.
|
|
type: string
|
|
ttl_seconds:
|
|
description: Verification code validity period in seconds.
|
|
type: integer
|
|
format: int32
|
|
cooldown_seconds:
|
|
description: Cooldown period before another code can be requested.
|
|
type: integer
|
|
format: int32
|
|
target:
|
|
description: Destination where the verification code was sent.
|
|
type: string
|
|
|
|
VerifyResultData:
|
|
description: Result payload returned after code verification succeeds.
|
|
oneOf:
|
|
- $ref: ../../accounts/response/auth.yaml#/components/schemas/LoginData
|
|
- $ref: ../../response/response.yaml#/components/schemas/SuccessResultData
|