Packages
OpenAPI API client for Ory Kratos, Ory's central identity management solution with hardened authentication, MFA, FIDO2, TOTP, WebAuthn, SSO, profile management, and more.
Current section
Files
Jump to
Current section
Files
lib/ory/model/recovery_flow.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.7.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Ory.Model.RecoveryFlow do
@moduledoc """
This request is used when an identity wants to recover their account. We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery)
"""
@derive Jason.Encoder
defstruct [
:active,
:continue_with,
:expires_at,
:id,
:issued_at,
:request_url,
:return_to,
:state,
:transient_payload,
:type,
:ui
]
@type t :: %__MODULE__{
:active => String.t | nil,
:continue_with => [Ory.Model.ContinueWith.t] | nil,
:expires_at => DateTime.t,
:id => String.t,
:issued_at => DateTime.t,
:request_url => String.t,
:return_to => String.t | nil,
:state => any() | nil,
:transient_payload => map() | nil,
:type => String.t,
:ui => Ory.Model.UiContainer.t
}
alias Ory.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:continue_with, :list, Ory.Model.ContinueWith)
|> Deserializer.deserialize(:expires_at, :datetime, nil)
|> Deserializer.deserialize(:issued_at, :datetime, nil)
|> Deserializer.deserialize(:ui, :struct, Ory.Model.UiContainer)
end
end