module OryKratos.Types.Login
  ( LoginFlow (..),
    LoginViaApiResponse (..),
    AuthenticateOKBody (..),
    SubmitSelfServiceLoginFlowWithPasswordMethod (..),
  )
where

import OryKratos.Types.Misc (Session)
import OryKratos.Types.Ui (UiContainer)
import Pre

-- | This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client.  Once a login flow is completed successfully, a session cookie or session token will be issued.
data LoginFlow = LoginFlow
  { -- | and so on.
    LoginFlow -> Maybe Text
active :: Maybe Text,
    -- | CreatedAt is a helper struct field for gobuffalo.pop.
    LoginFlow -> Maybe UTCTime
created_at :: Maybe UTCTime,
    -- | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
    LoginFlow -> UTCTime
expires_at :: UTCTime,
    -- | Forced stores whether this login flow should enforce re-authentication.
    LoginFlow -> Maybe Bool
forced :: Maybe Bool,
    -- |
    LoginFlow -> Text
id :: Text,
    -- | IssuedAt is the time (UTC) when the flow started.
    LoginFlow -> UTCTime
issued_at :: UTCTime,
    -- | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
    LoginFlow -> Text
request_url :: Text,
    -- | The flow type can either be `api` or `browser`.
    LoginFlow -> Text
_type :: Text,
    -- |
    LoginFlow -> UiContainer
ui :: UiContainer,
    -- | UpdatedAt is a helper struct field for gobuffalo.pop.
    LoginFlow -> Maybe UTCTime
updated_at :: Maybe UTCTime
  }
  deriving stock (Int -> LoginFlow -> ShowS
[LoginFlow] -> ShowS
LoginFlow -> String
(Int -> LoginFlow -> ShowS)
-> (LoginFlow -> String)
-> ([LoginFlow] -> ShowS)
-> Show LoginFlow
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LoginFlow] -> ShowS
$cshowList :: [LoginFlow] -> ShowS
show :: LoginFlow -> String
$cshow :: LoginFlow -> String
showsPrec :: Int -> LoginFlow -> ShowS
$cshowsPrec :: Int -> LoginFlow -> ShowS
Show, LoginFlow -> LoginFlow -> Bool
(LoginFlow -> LoginFlow -> Bool)
-> (LoginFlow -> LoginFlow -> Bool) -> Eq LoginFlow
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LoginFlow -> LoginFlow -> Bool
$c/= :: LoginFlow -> LoginFlow -> Bool
== :: LoginFlow -> LoginFlow -> Bool
$c== :: LoginFlow -> LoginFlow -> Bool
Eq, (forall x. LoginFlow -> Rep LoginFlow x)
-> (forall x. Rep LoginFlow x -> LoginFlow) -> Generic LoginFlow
forall x. Rep LoginFlow x -> LoginFlow
forall x. LoginFlow -> Rep LoginFlow x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LoginFlow x -> LoginFlow
$cfrom :: forall x. LoginFlow -> Rep LoginFlow x
Generic, Typeable LoginFlow
DataType
Constr
Typeable LoginFlow
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> LoginFlow -> c LoginFlow)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c LoginFlow)
-> (LoginFlow -> Constr)
-> (LoginFlow -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c LoginFlow))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LoginFlow))
-> ((forall b. Data b => b -> b) -> LoginFlow -> LoginFlow)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> LoginFlow -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> LoginFlow -> r)
-> (forall u. (forall d. Data d => d -> u) -> LoginFlow -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> LoginFlow -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow)
-> Data LoginFlow
LoginFlow -> DataType
LoginFlow -> Constr
(forall b. Data b => b -> b) -> LoginFlow -> LoginFlow
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> LoginFlow -> c LoginFlow
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c LoginFlow
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> LoginFlow -> u
forall u. (forall d. Data d => d -> u) -> LoginFlow -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> LoginFlow -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> LoginFlow -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c LoginFlow
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> LoginFlow -> c LoginFlow
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c LoginFlow)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LoginFlow)
$cLoginFlow :: Constr
$tLoginFlow :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow
gmapMp :: (forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow
gmapM :: (forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> LoginFlow -> m LoginFlow
gmapQi :: Int -> (forall d. Data d => d -> u) -> LoginFlow -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> LoginFlow -> u
gmapQ :: (forall d. Data d => d -> u) -> LoginFlow -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> LoginFlow -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> LoginFlow -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> LoginFlow -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> LoginFlow -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> LoginFlow -> r
gmapT :: (forall b. Data b => b -> b) -> LoginFlow -> LoginFlow
$cgmapT :: (forall b. Data b => b -> b) -> LoginFlow -> LoginFlow
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LoginFlow)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LoginFlow)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c LoginFlow)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c LoginFlow)
dataTypeOf :: LoginFlow -> DataType
$cdataTypeOf :: LoginFlow -> DataType
toConstr :: LoginFlow -> Constr
$ctoConstr :: LoginFlow -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c LoginFlow
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c LoginFlow
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> LoginFlow -> c LoginFlow
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> LoginFlow -> c LoginFlow
$cp1Data :: Typeable LoginFlow
Data)

instance FromJSON LoginFlow where
  parseJSON :: Value -> Parser LoginFlow
parseJSON =
    Options -> Value -> Parser LoginFlow
forall a.
(Generic a, GFromJSON Zero (Rep a)) =>
Options -> Value -> Parser a
genericParseJSON
      Options
defaultOptions
        { constructorTagModifier :: ShowS
constructorTagModifier = ShowS
typeFieldRename,
          fieldLabelModifier :: ShowS
fieldLabelModifier = ShowS
typeFieldRename
        }

instance ToJSON LoginFlow where
  toEncoding :: LoginFlow -> Encoding
toEncoding =
    Options -> LoginFlow -> Encoding
forall a.
(Generic a, GToJSON' Encoding Zero (Rep a)) =>
Options -> a -> Encoding
genericToEncoding
      Options
defaultOptions
        { constructorTagModifier :: ShowS
constructorTagModifier = ShowS
typeFieldRename,
          fieldLabelModifier :: ShowS
fieldLabelModifier = ShowS
typeFieldRename
        }

-- | The Response for Login Flows via API
data LoginViaApiResponse = LoginViaApiResponse
  { -- |
    LoginViaApiResponse -> Session
session :: Session,
    -- | The Session Token  A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header:  Authorization: bearer ${session-token}  The session token is only issued for API flows, not for Browser flows!
    LoginViaApiResponse -> Text
session_token :: Text
  }
  deriving stock (Int -> LoginViaApiResponse -> ShowS
[LoginViaApiResponse] -> ShowS
LoginViaApiResponse -> String
(Int -> LoginViaApiResponse -> ShowS)
-> (LoginViaApiResponse -> String)
-> ([LoginViaApiResponse] -> ShowS)
-> Show LoginViaApiResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LoginViaApiResponse] -> ShowS
$cshowList :: [LoginViaApiResponse] -> ShowS
show :: LoginViaApiResponse -> String
$cshow :: LoginViaApiResponse -> String
showsPrec :: Int -> LoginViaApiResponse -> ShowS
$cshowsPrec :: Int -> LoginViaApiResponse -> ShowS
Show, LoginViaApiResponse -> LoginViaApiResponse -> Bool
(LoginViaApiResponse -> LoginViaApiResponse -> Bool)
-> (LoginViaApiResponse -> LoginViaApiResponse -> Bool)
-> Eq LoginViaApiResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LoginViaApiResponse -> LoginViaApiResponse -> Bool
$c/= :: LoginViaApiResponse -> LoginViaApiResponse -> Bool
== :: LoginViaApiResponse -> LoginViaApiResponse -> Bool
$c== :: LoginViaApiResponse -> LoginViaApiResponse -> Bool
Eq, (forall x. LoginViaApiResponse -> Rep LoginViaApiResponse x)
-> (forall x. Rep LoginViaApiResponse x -> LoginViaApiResponse)
-> Generic LoginViaApiResponse
forall x. Rep LoginViaApiResponse x -> LoginViaApiResponse
forall x. LoginViaApiResponse -> Rep LoginViaApiResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LoginViaApiResponse x -> LoginViaApiResponse
$cfrom :: forall x. LoginViaApiResponse -> Rep LoginViaApiResponse x
Generic, Typeable LoginViaApiResponse
DataType
Constr
Typeable LoginViaApiResponse
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g)
    -> LoginViaApiResponse
    -> c LoginViaApiResponse)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c LoginViaApiResponse)
-> (LoginViaApiResponse -> Constr)
-> (LoginViaApiResponse -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c LoginViaApiResponse))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c LoginViaApiResponse))
-> ((forall b. Data b => b -> b)
    -> LoginViaApiResponse -> LoginViaApiResponse)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> LoginViaApiResponse -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> LoginViaApiResponse -> r)
-> (forall u.
    (forall d. Data d => d -> u) -> LoginViaApiResponse -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> LoginViaApiResponse -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> LoginViaApiResponse -> m LoginViaApiResponse)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> LoginViaApiResponse -> m LoginViaApiResponse)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> LoginViaApiResponse -> m LoginViaApiResponse)
-> Data LoginViaApiResponse
LoginViaApiResponse -> DataType
LoginViaApiResponse -> Constr
(forall b. Data b => b -> b)
-> LoginViaApiResponse -> LoginViaApiResponse
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> LoginViaApiResponse
-> c LoginViaApiResponse
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c LoginViaApiResponse
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> LoginViaApiResponse -> u
forall u.
(forall d. Data d => d -> u) -> LoginViaApiResponse -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> LoginViaApiResponse -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> LoginViaApiResponse -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> LoginViaApiResponse -> m LoginViaApiResponse
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> LoginViaApiResponse -> m LoginViaApiResponse
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c LoginViaApiResponse
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> LoginViaApiResponse
-> c LoginViaApiResponse
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c LoginViaApiResponse)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c LoginViaApiResponse)
$cLoginViaApiResponse :: Constr
$tLoginViaApiResponse :: DataType
gmapMo :: (forall d. Data d => d -> m d)
-> LoginViaApiResponse -> m LoginViaApiResponse
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> LoginViaApiResponse -> m LoginViaApiResponse
gmapMp :: (forall d. Data d => d -> m d)
-> LoginViaApiResponse -> m LoginViaApiResponse
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> LoginViaApiResponse -> m LoginViaApiResponse
gmapM :: (forall d. Data d => d -> m d)
-> LoginViaApiResponse -> m LoginViaApiResponse
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> LoginViaApiResponse -> m LoginViaApiResponse
gmapQi :: Int -> (forall d. Data d => d -> u) -> LoginViaApiResponse -> u
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> LoginViaApiResponse -> u
gmapQ :: (forall d. Data d => d -> u) -> LoginViaApiResponse -> [u]
$cgmapQ :: forall u.
(forall d. Data d => d -> u) -> LoginViaApiResponse -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> LoginViaApiResponse -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> LoginViaApiResponse -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> LoginViaApiResponse -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> LoginViaApiResponse -> r
gmapT :: (forall b. Data b => b -> b)
-> LoginViaApiResponse -> LoginViaApiResponse
$cgmapT :: (forall b. Data b => b -> b)
-> LoginViaApiResponse -> LoginViaApiResponse
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c LoginViaApiResponse)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c LoginViaApiResponse)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c LoginViaApiResponse)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c LoginViaApiResponse)
dataTypeOf :: LoginViaApiResponse -> DataType
$cdataTypeOf :: LoginViaApiResponse -> DataType
toConstr :: LoginViaApiResponse -> Constr
$ctoConstr :: LoginViaApiResponse -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c LoginViaApiResponse
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c LoginViaApiResponse
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> LoginViaApiResponse
-> c LoginViaApiResponse
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> LoginViaApiResponse
-> c LoginViaApiResponse
$cp1Data :: Typeable LoginViaApiResponse
Data)

instance FromJSON LoginViaApiResponse

instance ToJSON LoginViaApiResponse where
  toEncoding :: LoginViaApiResponse -> Encoding
toEncoding = Options -> LoginViaApiResponse -> Encoding
forall a.
(Generic a, GToJSON' Encoding Zero (Rep a)) =>
Options -> a -> Encoding
genericToEncoding Options
defaultOptions

-- | AuthenticateOKBody authenticate o k body
data AuthenticateOKBody = AuthenticateOKBody
  { -- | An opaque token used to authenticate a user after a successful login
    AuthenticateOKBody -> Text
identity_token :: Text,
    -- | The status of the authentication
    AuthenticateOKBody -> Text
status :: Text
  }
  deriving stock (Int -> AuthenticateOKBody -> ShowS
[AuthenticateOKBody] -> ShowS
AuthenticateOKBody -> String
(Int -> AuthenticateOKBody -> ShowS)
-> (AuthenticateOKBody -> String)
-> ([AuthenticateOKBody] -> ShowS)
-> Show AuthenticateOKBody
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthenticateOKBody] -> ShowS
$cshowList :: [AuthenticateOKBody] -> ShowS
show :: AuthenticateOKBody -> String
$cshow :: AuthenticateOKBody -> String
showsPrec :: Int -> AuthenticateOKBody -> ShowS
$cshowsPrec :: Int -> AuthenticateOKBody -> ShowS
Show, AuthenticateOKBody -> AuthenticateOKBody -> Bool
(AuthenticateOKBody -> AuthenticateOKBody -> Bool)
-> (AuthenticateOKBody -> AuthenticateOKBody -> Bool)
-> Eq AuthenticateOKBody
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthenticateOKBody -> AuthenticateOKBody -> Bool
$c/= :: AuthenticateOKBody -> AuthenticateOKBody -> Bool
== :: AuthenticateOKBody -> AuthenticateOKBody -> Bool
$c== :: AuthenticateOKBody -> AuthenticateOKBody -> Bool
Eq, (forall x. AuthenticateOKBody -> Rep AuthenticateOKBody x)
-> (forall x. Rep AuthenticateOKBody x -> AuthenticateOKBody)
-> Generic AuthenticateOKBody
forall x. Rep AuthenticateOKBody x -> AuthenticateOKBody
forall x. AuthenticateOKBody -> Rep AuthenticateOKBody x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AuthenticateOKBody x -> AuthenticateOKBody
$cfrom :: forall x. AuthenticateOKBody -> Rep AuthenticateOKBody x
Generic, Typeable AuthenticateOKBody
DataType
Constr
Typeable AuthenticateOKBody
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g)
    -> AuthenticateOKBody
    -> c AuthenticateOKBody)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c AuthenticateOKBody)
-> (AuthenticateOKBody -> Constr)
-> (AuthenticateOKBody -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c AuthenticateOKBody))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c AuthenticateOKBody))
-> ((forall b. Data b => b -> b)
    -> AuthenticateOKBody -> AuthenticateOKBody)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> AuthenticateOKBody -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> AuthenticateOKBody -> r)
-> (forall u.
    (forall d. Data d => d -> u) -> AuthenticateOKBody -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> AuthenticateOKBody -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> AuthenticateOKBody -> m AuthenticateOKBody)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> AuthenticateOKBody -> m AuthenticateOKBody)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> AuthenticateOKBody -> m AuthenticateOKBody)
-> Data AuthenticateOKBody
AuthenticateOKBody -> DataType
AuthenticateOKBody -> Constr
(forall b. Data b => b -> b)
-> AuthenticateOKBody -> AuthenticateOKBody
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> AuthenticateOKBody
-> c AuthenticateOKBody
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c AuthenticateOKBody
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> AuthenticateOKBody -> u
forall u. (forall d. Data d => d -> u) -> AuthenticateOKBody -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> AuthenticateOKBody -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> AuthenticateOKBody -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> AuthenticateOKBody -> m AuthenticateOKBody
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> AuthenticateOKBody -> m AuthenticateOKBody
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c AuthenticateOKBody
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> AuthenticateOKBody
-> c AuthenticateOKBody
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c AuthenticateOKBody)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c AuthenticateOKBody)
$cAuthenticateOKBody :: Constr
$tAuthenticateOKBody :: DataType
gmapMo :: (forall d. Data d => d -> m d)
-> AuthenticateOKBody -> m AuthenticateOKBody
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> AuthenticateOKBody -> m AuthenticateOKBody
gmapMp :: (forall d. Data d => d -> m d)
-> AuthenticateOKBody -> m AuthenticateOKBody
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> AuthenticateOKBody -> m AuthenticateOKBody
gmapM :: (forall d. Data d => d -> m d)
-> AuthenticateOKBody -> m AuthenticateOKBody
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> AuthenticateOKBody -> m AuthenticateOKBody
gmapQi :: Int -> (forall d. Data d => d -> u) -> AuthenticateOKBody -> u
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> AuthenticateOKBody -> u
gmapQ :: (forall d. Data d => d -> u) -> AuthenticateOKBody -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> AuthenticateOKBody -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> AuthenticateOKBody -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> AuthenticateOKBody -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> AuthenticateOKBody -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> AuthenticateOKBody -> r
gmapT :: (forall b. Data b => b -> b)
-> AuthenticateOKBody -> AuthenticateOKBody
$cgmapT :: (forall b. Data b => b -> b)
-> AuthenticateOKBody -> AuthenticateOKBody
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c AuthenticateOKBody)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c AuthenticateOKBody)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c AuthenticateOKBody)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c AuthenticateOKBody)
dataTypeOf :: AuthenticateOKBody -> DataType
$cdataTypeOf :: AuthenticateOKBody -> DataType
toConstr :: AuthenticateOKBody -> Constr
$ctoConstr :: AuthenticateOKBody -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c AuthenticateOKBody
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c AuthenticateOKBody
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> AuthenticateOKBody
-> c AuthenticateOKBody
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> AuthenticateOKBody
-> c AuthenticateOKBody
$cp1Data :: Typeable AuthenticateOKBody
Data)

instance FromJSON AuthenticateOKBody

instance ToJSON AuthenticateOKBody where
  toEncoding :: AuthenticateOKBody -> Encoding
toEncoding = Options -> AuthenticateOKBody -> Encoding
forall a.
(Generic a, GToJSON' Encoding Zero (Rep a)) =>
Options -> a -> Encoding
genericToEncoding Options
defaultOptions

-- |
data SubmitSelfServiceLoginFlowWithPasswordMethod = SubmitSelfServiceLoginFlowWithPasswordMethod
  { -- | Sending the anti-csrf token is only required for browser login flows.
    SubmitSelfServiceLoginFlowWithPasswordMethod -> Maybe Text
csrf_token :: Maybe Text,
    -- | Method should be set to \"password\" when logging in using the identifier and password strategy.
    SubmitSelfServiceLoginFlowWithPasswordMethod -> Maybe Text
method :: Maybe Text,
    -- | The user's password.
    SubmitSelfServiceLoginFlowWithPasswordMethod -> Maybe Text
password :: Maybe Text,
    -- | Identifier is the email or username of the user trying to log in.
    SubmitSelfServiceLoginFlowWithPasswordMethod -> Maybe Text
password_identifier :: Maybe Text
  }
  deriving stock (Int -> SubmitSelfServiceLoginFlowWithPasswordMethod -> ShowS
[SubmitSelfServiceLoginFlowWithPasswordMethod] -> ShowS
SubmitSelfServiceLoginFlowWithPasswordMethod -> String
(Int -> SubmitSelfServiceLoginFlowWithPasswordMethod -> ShowS)
-> (SubmitSelfServiceLoginFlowWithPasswordMethod -> String)
-> ([SubmitSelfServiceLoginFlowWithPasswordMethod] -> ShowS)
-> Show SubmitSelfServiceLoginFlowWithPasswordMethod
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SubmitSelfServiceLoginFlowWithPasswordMethod] -> ShowS
$cshowList :: [SubmitSelfServiceLoginFlowWithPasswordMethod] -> ShowS
show :: SubmitSelfServiceLoginFlowWithPasswordMethod -> String
$cshow :: SubmitSelfServiceLoginFlowWithPasswordMethod -> String
showsPrec :: Int -> SubmitSelfServiceLoginFlowWithPasswordMethod -> ShowS
$cshowsPrec :: Int -> SubmitSelfServiceLoginFlowWithPasswordMethod -> ShowS
Show, SubmitSelfServiceLoginFlowWithPasswordMethod
-> SubmitSelfServiceLoginFlowWithPasswordMethod -> Bool
(SubmitSelfServiceLoginFlowWithPasswordMethod
 -> SubmitSelfServiceLoginFlowWithPasswordMethod -> Bool)
-> (SubmitSelfServiceLoginFlowWithPasswordMethod
    -> SubmitSelfServiceLoginFlowWithPasswordMethod -> Bool)
-> Eq SubmitSelfServiceLoginFlowWithPasswordMethod
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SubmitSelfServiceLoginFlowWithPasswordMethod
-> SubmitSelfServiceLoginFlowWithPasswordMethod -> Bool
$c/= :: SubmitSelfServiceLoginFlowWithPasswordMethod
-> SubmitSelfServiceLoginFlowWithPasswordMethod -> Bool
== :: SubmitSelfServiceLoginFlowWithPasswordMethod
-> SubmitSelfServiceLoginFlowWithPasswordMethod -> Bool
$c== :: SubmitSelfServiceLoginFlowWithPasswordMethod
-> SubmitSelfServiceLoginFlowWithPasswordMethod -> Bool
Eq, (forall x.
 SubmitSelfServiceLoginFlowWithPasswordMethod
 -> Rep SubmitSelfServiceLoginFlowWithPasswordMethod x)
-> (forall x.
    Rep SubmitSelfServiceLoginFlowWithPasswordMethod x
    -> SubmitSelfServiceLoginFlowWithPasswordMethod)
-> Generic SubmitSelfServiceLoginFlowWithPasswordMethod
forall x.
Rep SubmitSelfServiceLoginFlowWithPasswordMethod x
-> SubmitSelfServiceLoginFlowWithPasswordMethod
forall x.
SubmitSelfServiceLoginFlowWithPasswordMethod
-> Rep SubmitSelfServiceLoginFlowWithPasswordMethod x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SubmitSelfServiceLoginFlowWithPasswordMethod x
-> SubmitSelfServiceLoginFlowWithPasswordMethod
$cfrom :: forall x.
SubmitSelfServiceLoginFlowWithPasswordMethod
-> Rep SubmitSelfServiceLoginFlowWithPasswordMethod x
Generic, Typeable SubmitSelfServiceLoginFlowWithPasswordMethod
DataType
Constr
Typeable SubmitSelfServiceLoginFlowWithPasswordMethod
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g)
    -> SubmitSelfServiceLoginFlowWithPasswordMethod
    -> c SubmitSelfServiceLoginFlowWithPasswordMethod)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r)
    -> Constr
    -> c SubmitSelfServiceLoginFlowWithPasswordMethod)
-> (SubmitSelfServiceLoginFlowWithPasswordMethod -> Constr)
-> (SubmitSelfServiceLoginFlowWithPasswordMethod -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d))
    -> Maybe (c SubmitSelfServiceLoginFlowWithPasswordMethod))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c SubmitSelfServiceLoginFlowWithPasswordMethod))
-> ((forall b. Data b => b -> b)
    -> SubmitSelfServiceLoginFlowWithPasswordMethod
    -> SubmitSelfServiceLoginFlowWithPasswordMethod)
-> (forall r r'.
    (r -> r' -> r)
    -> r
    -> (forall d. Data d => d -> r')
    -> SubmitSelfServiceLoginFlowWithPasswordMethod
    -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r
    -> (forall d. Data d => d -> r')
    -> SubmitSelfServiceLoginFlowWithPasswordMethod
    -> r)
-> (forall u.
    (forall d. Data d => d -> u)
    -> SubmitSelfServiceLoginFlowWithPasswordMethod -> [u])
-> (forall u.
    Int
    -> (forall d. Data d => d -> u)
    -> SubmitSelfServiceLoginFlowWithPasswordMethod
    -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> SubmitSelfServiceLoginFlowWithPasswordMethod
    -> m SubmitSelfServiceLoginFlowWithPasswordMethod)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> SubmitSelfServiceLoginFlowWithPasswordMethod
    -> m SubmitSelfServiceLoginFlowWithPasswordMethod)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> SubmitSelfServiceLoginFlowWithPasswordMethod
    -> m SubmitSelfServiceLoginFlowWithPasswordMethod)
-> Data SubmitSelfServiceLoginFlowWithPasswordMethod
SubmitSelfServiceLoginFlowWithPasswordMethod -> DataType
SubmitSelfServiceLoginFlowWithPasswordMethod -> Constr
(forall b. Data b => b -> b)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> SubmitSelfServiceLoginFlowWithPasswordMethod
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> c SubmitSelfServiceLoginFlowWithPasswordMethod
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r)
-> Constr
-> c SubmitSelfServiceLoginFlowWithPasswordMethod
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int
-> (forall d. Data d => d -> u)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> u
forall u.
(forall d. Data d => d -> u)
-> SubmitSelfServiceLoginFlowWithPasswordMethod -> [u]
forall r r'.
(r -> r' -> r)
-> r
-> (forall d. Data d => d -> r')
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> r
forall r r'.
(r' -> r -> r)
-> r
-> (forall d. Data d => d -> r')
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> m SubmitSelfServiceLoginFlowWithPasswordMethod
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> m SubmitSelfServiceLoginFlowWithPasswordMethod
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r)
-> Constr
-> c SubmitSelfServiceLoginFlowWithPasswordMethod
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> c SubmitSelfServiceLoginFlowWithPasswordMethod
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d))
-> Maybe (c SubmitSelfServiceLoginFlowWithPasswordMethod)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SubmitSelfServiceLoginFlowWithPasswordMethod)
$cSubmitSelfServiceLoginFlowWithPasswordMethod :: Constr
$tSubmitSelfServiceLoginFlowWithPasswordMethod :: DataType
gmapMo :: (forall d. Data d => d -> m d)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> m SubmitSelfServiceLoginFlowWithPasswordMethod
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> m SubmitSelfServiceLoginFlowWithPasswordMethod
gmapMp :: (forall d. Data d => d -> m d)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> m SubmitSelfServiceLoginFlowWithPasswordMethod
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> m SubmitSelfServiceLoginFlowWithPasswordMethod
gmapM :: (forall d. Data d => d -> m d)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> m SubmitSelfServiceLoginFlowWithPasswordMethod
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> m SubmitSelfServiceLoginFlowWithPasswordMethod
gmapQi :: Int
-> (forall d. Data d => d -> u)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> u
$cgmapQi :: forall u.
Int
-> (forall d. Data d => d -> u)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> u
gmapQ :: (forall d. Data d => d -> u)
-> SubmitSelfServiceLoginFlowWithPasswordMethod -> [u]
$cgmapQ :: forall u.
(forall d. Data d => d -> u)
-> SubmitSelfServiceLoginFlowWithPasswordMethod -> [u]
gmapQr :: (r' -> r -> r)
-> r
-> (forall d. Data d => d -> r')
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r
-> (forall d. Data d => d -> r')
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> r
gmapQl :: (r -> r' -> r)
-> r
-> (forall d. Data d => d -> r')
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r
-> (forall d. Data d => d -> r')
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> r
gmapT :: (forall b. Data b => b -> b)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> SubmitSelfServiceLoginFlowWithPasswordMethod
$cgmapT :: (forall b. Data b => b -> b)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> SubmitSelfServiceLoginFlowWithPasswordMethod
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SubmitSelfServiceLoginFlowWithPasswordMethod)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c SubmitSelfServiceLoginFlowWithPasswordMethod)
dataCast1 :: (forall d. Data d => c (t d))
-> Maybe (c SubmitSelfServiceLoginFlowWithPasswordMethod)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d))
-> Maybe (c SubmitSelfServiceLoginFlowWithPasswordMethod)
dataTypeOf :: SubmitSelfServiceLoginFlowWithPasswordMethod -> DataType
$cdataTypeOf :: SubmitSelfServiceLoginFlowWithPasswordMethod -> DataType
toConstr :: SubmitSelfServiceLoginFlowWithPasswordMethod -> Constr
$ctoConstr :: SubmitSelfServiceLoginFlowWithPasswordMethod -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r)
-> Constr
-> c SubmitSelfServiceLoginFlowWithPasswordMethod
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r)
-> Constr
-> c SubmitSelfServiceLoginFlowWithPasswordMethod
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> c SubmitSelfServiceLoginFlowWithPasswordMethod
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> SubmitSelfServiceLoginFlowWithPasswordMethod
-> c SubmitSelfServiceLoginFlowWithPasswordMethod
$cp1Data :: Typeable SubmitSelfServiceLoginFlowWithPasswordMethod
Data)

instance FromJSON SubmitSelfServiceLoginFlowWithPasswordMethod

instance ToJSON SubmitSelfServiceLoginFlowWithPasswordMethod where
  toEncoding :: SubmitSelfServiceLoginFlowWithPasswordMethod -> Encoding
toEncoding = Options -> SubmitSelfServiceLoginFlowWithPasswordMethod -> Encoding
forall a.
(Generic a, GToJSON' Encoding Zero (Rep a)) =>
Options -> a -> Encoding
genericToEncoding Options
defaultOptions