packages feed

ory-kratos 0.0.5.7 → 0.0.5.8

raw patch · 2 files changed

+74/−5 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ OryKratos.Types: LoginFlowMethods :: Maybe LoginFlowMethod -> Maybe LoginFlowMethod -> LoginFlowMethods
+ OryKratos.Types: RecoveryFlowMethods :: Maybe RecoveryFlowMethod -> RecoveryFlowMethods
+ OryKratos.Types: RegistrationFlowMethods :: Maybe RegistrationFlowMethod -> Maybe RegistrationFlowMethod -> RegistrationFlowMethods
+ OryKratos.Types: SettingsFlowMethods :: Maybe SettingsFlowMethod -> Maybe SettingsFlowMethod -> Maybe SettingsFlowMethod -> SettingsFlowMethods
+ OryKratos.Types: VerificationFlowMethods :: Maybe VerificationFlowMethod -> VerificationFlowMethods
+ OryKratos.Types: [$sel:link:RecoveryFlowMethods] :: RecoveryFlowMethods -> Maybe RecoveryFlowMethod
+ OryKratos.Types: [$sel:link:VerificationFlowMethods] :: VerificationFlowMethods -> Maybe VerificationFlowMethod
+ OryKratos.Types: [$sel:oidc:LoginFlowMethods] :: LoginFlowMethods -> Maybe LoginFlowMethod
+ OryKratos.Types: [$sel:oidc:RegistrationFlowMethods] :: RegistrationFlowMethods -> Maybe RegistrationFlowMethod
+ OryKratos.Types: [$sel:oidc:SettingsFlowMethods] :: SettingsFlowMethods -> Maybe SettingsFlowMethod
+ OryKratos.Types: [$sel:password:LoginFlowMethods] :: LoginFlowMethods -> Maybe LoginFlowMethod
+ OryKratos.Types: [$sel:password:RegistrationFlowMethods] :: RegistrationFlowMethods -> Maybe RegistrationFlowMethod
+ OryKratos.Types: [$sel:password:SettingsFlowMethods] :: SettingsFlowMethods -> Maybe SettingsFlowMethod
+ OryKratos.Types: [$sel:profile:SettingsFlowMethods] :: SettingsFlowMethods -> Maybe SettingsFlowMethod
+ OryKratos.Types: data LoginFlowMethods
+ OryKratos.Types: data RecoveryFlowMethods
+ OryKratos.Types: data RegistrationFlowMethods
+ OryKratos.Types: data SettingsFlowMethods
+ OryKratos.Types: data VerificationFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.FromJSON.FromJSON OryKratos.Types.LoginFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.FromJSON.FromJSON OryKratos.Types.RecoveryFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.FromJSON.FromJSON OryKratos.Types.RegistrationFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.FromJSON.FromJSON OryKratos.Types.SettingsFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.FromJSON.FromJSON OryKratos.Types.VerificationFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.ToJSON.ToJSON OryKratos.Types.LoginFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.ToJSON.ToJSON OryKratos.Types.RecoveryFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.ToJSON.ToJSON OryKratos.Types.RegistrationFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.ToJSON.ToJSON OryKratos.Types.SettingsFlowMethods
+ OryKratos.Types: instance Data.Aeson.Types.ToJSON.ToJSON OryKratos.Types.VerificationFlowMethods
+ OryKratos.Types: instance Data.Data.Data OryKratos.Types.LoginFlowMethods
+ OryKratos.Types: instance Data.Data.Data OryKratos.Types.RecoveryFlowMethods
+ OryKratos.Types: instance Data.Data.Data OryKratos.Types.RegistrationFlowMethods
+ OryKratos.Types: instance Data.Data.Data OryKratos.Types.SettingsFlowMethods
+ OryKratos.Types: instance Data.Data.Data OryKratos.Types.VerificationFlowMethods
+ OryKratos.Types: instance GHC.Classes.Eq OryKratos.Types.LoginFlowMethods
+ OryKratos.Types: instance GHC.Classes.Eq OryKratos.Types.RecoveryFlowMethods
+ OryKratos.Types: instance GHC.Classes.Eq OryKratos.Types.RegistrationFlowMethods
+ OryKratos.Types: instance GHC.Classes.Eq OryKratos.Types.SettingsFlowMethods
+ OryKratos.Types: instance GHC.Classes.Eq OryKratos.Types.VerificationFlowMethods
+ OryKratos.Types: instance GHC.Generics.Generic OryKratos.Types.LoginFlowMethods
+ OryKratos.Types: instance GHC.Generics.Generic OryKratos.Types.RecoveryFlowMethods
+ OryKratos.Types: instance GHC.Generics.Generic OryKratos.Types.RegistrationFlowMethods
+ OryKratos.Types: instance GHC.Generics.Generic OryKratos.Types.SettingsFlowMethods
+ OryKratos.Types: instance GHC.Generics.Generic OryKratos.Types.VerificationFlowMethods
+ OryKratos.Types: instance GHC.Show.Show OryKratos.Types.LoginFlowMethods
+ OryKratos.Types: instance GHC.Show.Show OryKratos.Types.RecoveryFlowMethods
+ OryKratos.Types: instance GHC.Show.Show OryKratos.Types.RegistrationFlowMethods
+ OryKratos.Types: instance GHC.Show.Show OryKratos.Types.SettingsFlowMethods
+ OryKratos.Types: instance GHC.Show.Show OryKratos.Types.VerificationFlowMethods
- OryKratos.Types: LoginFlow :: Maybe Text -> UTCTime -> Maybe Bool -> Text -> UTCTime -> Maybe [Message] -> Map String LoginFlowMethod -> Text -> Maybe Text -> LoginFlow
+ OryKratos.Types: LoginFlow :: Maybe Text -> UTCTime -> Maybe Bool -> Text -> UTCTime -> Maybe [Message] -> LoginFlowMethods -> Text -> Maybe Text -> LoginFlow
- OryKratos.Types: RecoveryFlow :: Maybe Text -> UTCTime -> Text -> UTCTime -> Maybe [Message] -> Map String RecoveryFlowMethod -> Text -> Text -> Maybe Text -> RecoveryFlow
+ OryKratos.Types: RecoveryFlow :: Maybe Text -> UTCTime -> Text -> UTCTime -> Maybe [Message] -> RecoveryFlowMethods -> Text -> Text -> Maybe Text -> RecoveryFlow
- OryKratos.Types: RegistrationFlow :: Maybe Text -> UTCTime -> Text -> UTCTime -> Maybe [Message] -> Map String RegistrationFlowMethod -> Text -> Maybe Text -> RegistrationFlow
+ OryKratos.Types: RegistrationFlow :: Maybe Text -> UTCTime -> Text -> UTCTime -> Maybe [Message] -> RegistrationFlowMethods -> Text -> Maybe Text -> RegistrationFlow
- OryKratos.Types: SettingsFlow :: Maybe Text -> UTCTime -> Text -> Identity -> UTCTime -> Maybe [Message] -> Map String SettingsFlowMethod -> Text -> Text -> Maybe Text -> SettingsFlow
+ OryKratos.Types: SettingsFlow :: Maybe Text -> UTCTime -> Text -> Identity -> UTCTime -> Maybe [Message] -> SettingsFlowMethods -> Text -> Text -> Maybe Text -> SettingsFlow
- OryKratos.Types: [$sel:methods:LoginFlow] :: LoginFlow -> Map String LoginFlowMethod
+ OryKratos.Types: [$sel:methods:LoginFlow] :: LoginFlow -> LoginFlowMethods
- OryKratos.Types: [$sel:methods:RecoveryFlow] :: RecoveryFlow -> Map String RecoveryFlowMethod
+ OryKratos.Types: [$sel:methods:RecoveryFlow] :: RecoveryFlow -> RecoveryFlowMethods
- OryKratos.Types: [$sel:methods:RegistrationFlow] :: RegistrationFlow -> Map String RegistrationFlowMethod
+ OryKratos.Types: [$sel:methods:RegistrationFlow] :: RegistrationFlow -> RegistrationFlowMethods
- OryKratos.Types: [$sel:methods:SettingsFlow] :: SettingsFlow -> Map String SettingsFlowMethod
+ OryKratos.Types: [$sel:methods:SettingsFlow] :: SettingsFlow -> SettingsFlowMethods

Files

lib/OryKratos/Types.hs view
@@ -20,28 +20,33 @@     HealthStatus (..),     Identity (..),     LoginFlow (..),+    LoginFlowMethods (..),     LoginFlowMethod (..),     LoginFlowMethodConfig (..),     LoginViaApiResponse (..),     Message (..),     RecoveryAddress (..),     RecoveryFlow (..),+    RecoveryFlowMethods (..),     RecoveryFlowMethod (..),     RecoveryFlowMethodConfig (..),     RecoveryLink (..),     RegistrationFlow (..),+    RegistrationFlowMethods (..),     RegistrationFlowMethod (..),     RegistrationFlowMethodConfig (..),     RegistrationViaApiResponse (..),     RevokeSession (..),     Session (..),     SettingsFlow (..),+    SettingsFlowMethods (..),     SettingsFlowMethod (..),     SettingsFlowMethodConfig (..),     SettingsViaApiResponse (..),     UpdateIdentity (..),     VerifiableAddress (..),     VerificationFlow (..),+    VerificationFlowMethods (..),     VerificationFlowMethod (..),     VerificationFlowMethodConfig (..),     Version (..),@@ -301,7 +306,7 @@     -- |     messages :: Maybe [Message],     -- | List of login methods  This is the list of available login methods with their required form fields, such as `identifier` and `password` for the password login method. This will also contain error messages such as \"password can not be empty\".-    methods :: Map.Map String LoginFlowMethod,+    methods :: LoginFlowMethods,     -- | 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.     request_url :: Text,     -- | The flow type can either be `api` or `browser`.@@ -325,6 +330,18 @@           fieldLabelModifier = typeFieldRename         } +data LoginFlowMethods = LoginFlowMethods+  {+    password :: Maybe LoginFlowMethod,+    oidc :: Maybe LoginFlowMethod+  }+  deriving stock (Show, Eq, Generic, Data)++instance FromJSON LoginFlowMethods++instance ToJSON LoginFlowMethods where+  toEncoding = genericToEncoding defaultOptions+ -- | data LoginFlowMethod = LoginFlowMethod   { -- |@@ -431,7 +448,7 @@     -- |     messages :: Maybe [Message],     -- | Methods contains context for all account recovery methods. If a registration request has been processed, but for example the password is incorrect, this will contain error messages.-    methods :: Map.Map String RecoveryFlowMethod,+    methods :: RecoveryFlowMethods,     -- | 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.     request_url :: Text,     -- |@@ -458,6 +475,18 @@         }  -- |+data RecoveryFlowMethods = RecoveryFlowMethods+  { -- |+    link :: Maybe RecoveryFlowMethod+  }+  deriving stock (Show, Eq, Generic, Data)++instance FromJSON RecoveryFlowMethods++instance ToJSON RecoveryFlowMethods where+  toEncoding = genericToEncoding defaultOptions++-- | data RecoveryFlowMethod = RecoveryFlowMethod   { -- |     config :: RecoveryFlowMethodConfig,@@ -516,7 +545,7 @@     -- |     messages :: Maybe [Message],     -- | Methods contains context for all enabled registration methods. If a registration flow has been processed, but for example the password is incorrect, this will contain error messages.-    methods :: Map.Map String RegistrationFlowMethod,+    methods :: RegistrationFlowMethods,     -- | 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.     request_url :: Text,     -- | The flow type can either be `api` or `browser`.@@ -541,6 +570,20 @@         }  -- |+data RegistrationFlowMethods = RegistrationFlowMethods+  { -- |+    password :: Maybe RegistrationFlowMethod,+    -- | and so on.+    oidc :: Maybe RegistrationFlowMethod+  }+  deriving stock (Show, Eq, Generic, Data)++instance FromJSON RegistrationFlowMethods++instance ToJSON RegistrationFlowMethods where+  toEncoding = genericToEncoding defaultOptions++-- | data RegistrationFlowMethod = RegistrationFlowMethod   { -- |     config :: RegistrationFlowMethodConfig,@@ -639,7 +682,7 @@     -- |     messages :: Maybe [Message],     -- | Methods contains context for all enabled registration methods. If a settings flow has been processed, but for example the first name is empty, this will contain error messages.-    methods :: Map.Map String SettingsFlowMethod,+    methods :: SettingsFlowMethods,     -- | 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.     request_url :: Text,     -- |@@ -666,6 +709,20 @@         }  -- |+data SettingsFlowMethods = SettingsFlowMethods+  { -- |+    profile :: Maybe SettingsFlowMethod,+    password :: Maybe SettingsFlowMethod,+    oidc :: Maybe SettingsFlowMethod+  }+  deriving stock (Show, Eq, Generic, Data)++instance FromJSON SettingsFlowMethods++instance ToJSON SettingsFlowMethods where+  toEncoding = genericToEncoding defaultOptions++-- | data SettingsFlowMethod = SettingsFlowMethod   { -- |     config :: SettingsFlowMethodConfig,@@ -785,6 +842,18 @@         { constructorTagModifier = typeFieldRename,           fieldLabelModifier = typeFieldRename         }++-- |+data VerificationFlowMethods = VerificationFlowMethods+  { -- |+    link :: Maybe VerificationFlowMethod+  }+  deriving stock (Show, Eq, Generic, Data)++instance FromJSON VerificationFlowMethods++instance ToJSON VerificationFlowMethods where+  toEncoding = genericToEncoding defaultOptions  -- | data VerificationFlowMethod = VerificationFlowMethod
ory-kratos.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name:          ory-kratos-version:       0.0.5.7+version:       0.0.5.8 synopsis:      API bindings for Ory Kratos description:   Auto-generated API bindings for ory-kratos 0.5.5-alpha1 homepage:      https://github.com/njaremko/ory-kratos-haskell-sdk