From 4fb28b363622bb21ce12d9f89d2ceb4649aa0cba Mon Sep 17 00:00:00 2001 From: Patrik Date: Wed, 31 Jul 2024 17:08:51 +0200 Subject: [PATCH] chore: align internal SDK with published SDK (#4019) --- Makefile | 4 +- cmd/identities/delete.go | 2 +- cmd/identities/get.go | 2 +- cmd/identities/import.go | 2 +- cmd/identities/list.go | 2 +- cmd/identities/validate.go | 2 +- cmd/remote/status.go | 4 +- cmd/remote/version.go | 2 +- examples/go/identity/create/main.go | 2 +- examples/go/identity/delete/main.go | 2 +- examples/go/identity/get/main.go | 2 +- examples/go/identity/update/main.go | 2 +- examples/go/pkg/resources.go | 6 +- examples/go/selfservice/error/main.go | 2 +- examples/go/selfservice/login/main.go | 4 +- examples/go/selfservice/logout/main.go | 2 +- examples/go/selfservice/recovery/main.go | 4 +- examples/go/selfservice/registration/main.go | 4 +- examples/go/selfservice/settings/main.go | 6 +- examples/go/selfservice/verification/main.go | 4 +- examples/go/session/tosession/main.go | 2 +- go.mod | 2 +- internal/client-go/.openapi-generator/FILES | 8 +- internal/client-go/README.md | 106 +-- internal/client-go/api_courier.go | 58 +- internal/client-go/api_frontend.go | 818 +++++++++--------- internal/client-go/api_identity.go | 466 +++++----- internal/client-go/api_metadata.go | 72 +- internal/client-go/client.go | 16 +- internal/httpclient/.openapi-generator/FILES | 8 +- internal/httpclient/README.md | 106 +-- internal/httpclient/api_courier.go | 58 +- internal/httpclient/api_frontend.go | 818 +++++++++--------- internal/httpclient/api_identity.go | 466 +++++----- internal/httpclient/api_metadata.go | 72 +- internal/httpclient/client.go | 16 +- internal/testhelpers/selfservice_login.go | 6 +- internal/testhelpers/selfservice_recovery.go | 6 +- .../testhelpers/selfservice_registration.go | 6 +- internal/testhelpers/selfservice_settings.go | 6 +- .../testhelpers/selfservice_verification.go | 6 +- selfservice/flow/login/error_test.go | 2 +- selfservice/flow/recovery/error_test.go | 4 +- selfservice/flow/registration/error_test.go | 2 +- selfservice/flow/settings/error_test.go | 2 +- selfservice/flow/settings/handler_test.go | 6 +- selfservice/flow/verification/error_test.go | 2 +- .../strategy/code/strategy_login_test.go | 8 +- .../code/strategy_recovery_admin_test.go | 2 +- .../strategy/code/strategy_recovery_test.go | 6 +- .../code/strategy_registration_test.go | 6 +- .../strategy/link/strategy_recovery_test.go | 18 +- .../link/strategy_verification_test.go | 4 +- .../strategy/oidc/strategy_settings_test.go | 12 +- selfservice/strategy/profile/strategy_test.go | 6 +- 55 files changed, 1631 insertions(+), 1631 deletions(-) diff --git a/Makefile b/Makefile index 0395085b9849..212cc06a9299 100644 --- a/Makefile +++ b/Makefile @@ -125,7 +125,7 @@ sdk: .bin/swagger .bin/ory node_modules --git-user-id ory \ --git-repo-id client-go \ --git-host github.com \ - --api-name-suffix "Api" \ + --api-name-suffix "API" \ -t .schema/openapi/templates/go \ -c .schema/openapi/gen.go.yml @@ -139,7 +139,7 @@ sdk: .bin/swagger .bin/ory node_modules --git-user-id ory \ --git-repo-id client-go \ --git-host github.com \ - --api-name-suffix "Api" \ + --api-name-suffix "API" \ -t .schema/openapi/templates/go \ -c .schema/openapi/gen.go.yml diff --git a/cmd/identities/delete.go b/cmd/identities/delete.go index 9a1029b7a244..e1433bca87be 100644 --- a/cmd/identities/delete.go +++ b/cmd/identities/delete.go @@ -47,7 +47,7 @@ func NewDeleteIdentityCmd() *cobra.Command { ) for _, a := range args { - _, err := c.IdentityApi.DeleteIdentity(cmd.Context(), a).Execute() + _, err := c.IdentityAPI.DeleteIdentity(cmd.Context(), a).Execute() if err != nil { failed[a] = cmdx.PrintOpenAPIError(cmd, err) continue diff --git a/cmd/identities/get.go b/cmd/identities/get.go index 677ac3bc9121..8203454b2af0 100644 --- a/cmd/identities/get.go +++ b/cmd/identities/get.go @@ -66,7 +66,7 @@ func NewGetIdentityCmd() *cobra.Command { identities := make([]kratos.Identity, 0, len(args)) failed := make(map[string]error) for _, id := range args { - identity, _, err := c.IdentityApi. + identity, _, err := c.IdentityAPI. GetIdentity(cmd.Context(), id). IncludeCredential(includeCreds). Execute() diff --git a/cmd/identities/import.go b/cmd/identities/import.go index 1de8a22de385..8eac43afed05 100644 --- a/cmd/identities/import.go +++ b/cmd/identities/import.go @@ -73,7 +73,7 @@ Files can contain only a single or an array of identities. The validity of files return cmdx.FailSilently(cmd) } - ident, _, err := c.IdentityApi.CreateIdentity(cmd.Context()).CreateIdentityBody(params).Execute() + ident, _, err := c.IdentityAPI.CreateIdentity(cmd.Context()).CreateIdentityBody(params).Execute() if err != nil { failed[src] = cmdx.PrintOpenAPIError(cmd, err) } else { diff --git a/cmd/identities/list.go b/cmd/identities/list.go index 0fd4f13d20bf..24e38fafad0b 100644 --- a/cmd/identities/list.go +++ b/cmd/identities/list.go @@ -43,7 +43,7 @@ Eventual consistency means that the list operation will return faster and might } consistency := flagx.MustGetString(cmd, "consistency") - req := c.IdentityApi.ListIdentities(cmd.Context()).Consistency(consistency) + req := c.IdentityAPI.ListIdentities(cmd.Context()).Consistency(consistency) page, perPage, err := cmdx.ParseTokenPaginationArgs(cmd) if err != nil { return err diff --git a/cmd/identities/validate.go b/cmd/identities/validate.go index 2454d896225b..322e8e15c99a 100644 --- a/cmd/identities/validate.go +++ b/cmd/identities/validate.go @@ -56,7 +56,7 @@ Identities can be supplied via STD_IN or JSON files containing a single or an ar for src, i := range is { err = ValidateIdentity(cmd, src, i, func(ctx context.Context, id string) (map[string]interface{}, *http.Response, error) { - return c.IdentityApi.GetIdentitySchema(ctx, id).Execute() + return c.IdentityAPI.GetIdentitySchema(ctx, id).Execute() }) if err != nil { return err diff --git a/cmd/remote/status.go b/cmd/remote/status.go index e61ef0b068b2..7421eef7e659 100644 --- a/cmd/remote/status.go +++ b/cmd/remote/status.go @@ -51,14 +51,14 @@ var statusCmd = &cobra.Command{ state := &statusState{} defer cmdx.PrintRow(cmd, state) - alive, _, err := c.MetadataApi.IsAlive(cmd.Context()).Execute() + alive, _, err := c.MetadataAPI.IsAlive(cmd.Context()).Execute() if err != nil { return err } state.Alive = alive.Status == "ok" - ready, _, err := c.MetadataApi.IsReady(cmd.Context()).Execute() + ready, _, err := c.MetadataAPI.IsReady(cmd.Context()).Execute() if err != nil { return err } diff --git a/cmd/remote/version.go b/cmd/remote/version.go index 18c33388ac36..23bf102f344f 100644 --- a/cmd/remote/version.go +++ b/cmd/remote/version.go @@ -36,7 +36,7 @@ var versionCmd = &cobra.Command{ return err } - resp, _, err := c.MetadataApi.GetVersion(cmd.Context()).Execute() + resp, _, err := c.MetadataAPI.GetVersion(cmd.Context()).Execute() if err != nil { return err } diff --git a/examples/go/identity/create/main.go b/examples/go/identity/create/main.go index 92f95769d054..be515e997131 100644 --- a/examples/go/identity/create/main.go +++ b/examples/go/identity/create/main.go @@ -19,7 +19,7 @@ var client = pkg.NewSDK("playground") func createIdentity() *ory.Identity { ctx := context.Background() - identity, res, err := client.IdentityApi.CreateIdentity(ctx). + identity, res, err := client.IdentityAPI.CreateIdentity(ctx). CreateIdentityBody(ory.CreateIdentityBody{ SchemaId: "default", Traits: map[string]interface{}{ diff --git a/examples/go/identity/delete/main.go b/examples/go/identity/delete/main.go index 999bc004dfa8..6857c2a3f6c5 100644 --- a/examples/go/identity/delete/main.go +++ b/examples/go/identity/delete/main.go @@ -20,7 +20,7 @@ func deleteIdentity() { identity := pkg.CreateIdentity(client) - res, err := client.IdentityApi.DeleteIdentity(ctx, identity.Id).Execute() + res, err := client.IdentityAPI.DeleteIdentity(ctx, identity.Id).Execute() pkg.SDKExitOnError(err, res) } diff --git a/examples/go/identity/get/main.go b/examples/go/identity/get/main.go index 865c72c3a1e7..dcd5cefc814d 100644 --- a/examples/go/identity/get/main.go +++ b/examples/go/identity/get/main.go @@ -19,7 +19,7 @@ func getIdentity() *ory.Identity { ctx := context.Background() created := pkg.CreateIdentity(client) - identity, res, err := client.IdentityApi.GetIdentity(ctx, created.Id).IncludeCredential([]string{"password"}).Execute() + identity, res, err := client.IdentityAPI.GetIdentity(ctx, created.Id).IncludeCredential([]string{"password"}).Execute() pkg.SDKExitOnError(err, res) return identity diff --git a/examples/go/identity/update/main.go b/examples/go/identity/update/main.go index a1d9062ad821..46b868f84b10 100644 --- a/examples/go/identity/update/main.go +++ b/examples/go/identity/update/main.go @@ -20,7 +20,7 @@ func updateIdentity() *ory.Identity { ctx := context.Background() toUpdate := pkg.CreateIdentity(client) - identity, res, err := client.IdentityApi.UpdateIdentity(ctx, toUpdate.Id).UpdateIdentityBody(ory.UpdateIdentityBody{ + identity, res, err := client.IdentityAPI.UpdateIdentity(ctx, toUpdate.Id).UpdateIdentityBody(ory.UpdateIdentityBody{ Traits: map[string]interface{}{ "email": "dev+not-" + x.NewUUID().String() + "@ory.sh", }, diff --git a/examples/go/pkg/resources.go b/examples/go/pkg/resources.go index b931ef0fdda9..a6cd4326faed 100644 --- a/examples/go/pkg/resources.go +++ b/examples/go/pkg/resources.go @@ -32,11 +32,11 @@ func CreateIdentityWithSession(c *ory.APIClient, email, password string) (*ory.S } // Initialize a registration flow - flow, _, err := c.FrontendApi.CreateNativeRegistrationFlow(ctx).Execute() + flow, _, err := c.FrontendAPI.CreateNativeRegistrationFlow(ctx).Execute() ExitOnError(err) // Submit the registration flow - result, res, err := c.FrontendApi.UpdateRegistrationFlow(ctx).Flow(flow.Id).UpdateRegistrationFlowBody( + result, res, err := c.FrontendAPI.UpdateRegistrationFlow(ctx).Flow(flow.Id).UpdateRegistrationFlowBody( ory.UpdateRegistrationFlowWithPasswordMethodAsUpdateRegistrationFlowBody(&ory.UpdateRegistrationFlowWithPasswordMethod{ Method: "password", Password: password, @@ -56,7 +56,7 @@ func CreateIdentity(c *ory.APIClient) *ory.Identity { ctx := context.Background() email, _ := RandomCredentials() - identity, _, err := c.IdentityApi.CreateIdentity(ctx).CreateIdentityBody(ory.CreateIdentityBody{ + identity, _, err := c.IdentityAPI.CreateIdentity(ctx).CreateIdentityBody(ory.CreateIdentityBody{ SchemaId: "default", Traits: map[string]interface{}{ "email": email, diff --git a/examples/go/selfservice/error/main.go b/examples/go/selfservice/error/main.go index cdd31eec40aa..ca9eda53c86c 100644 --- a/examples/go/selfservice/error/main.go +++ b/examples/go/selfservice/error/main.go @@ -17,7 +17,7 @@ import ( var client = pkg.NewSDK("playground") func getError() *ory.FlowError { - e, res, err := client.FrontendApi.GetFlowError(context.Background()).Id("stub:500").Execute() + e, res, err := client.FrontendAPI.GetFlowError(context.Background()).Id("stub:500").Execute() pkg.SDKExitOnError(err, res) return e } diff --git a/examples/go/selfservice/login/main.go b/examples/go/selfservice/login/main.go index 23360c6e144b..c94f67e55bef 100644 --- a/examples/go/selfservice/login/main.go +++ b/examples/go/selfservice/login/main.go @@ -24,7 +24,7 @@ func performLogin() *ory.SuccessfulNativeLogin { _, _ = pkg.CreateIdentityWithSession(client, email, password) // Initialize the flow - flow, res, err := client.FrontendApi.CreateNativeLoginFlow(ctx).Execute() + flow, res, err := client.FrontendAPI.CreateNativeLoginFlow(ctx).Execute() pkg.SDKExitOnError(err, res) // If you want, print the flow here: @@ -32,7 +32,7 @@ func performLogin() *ory.SuccessfulNativeLogin { // pkg.PrintJSONPretty(flow) // Submit the form - result, res, err := client.FrontendApi.UpdateLoginFlow(ctx).Flow(flow.Id).UpdateLoginFlowBody( + result, res, err := client.FrontendAPI.UpdateLoginFlow(ctx).Flow(flow.Id).UpdateLoginFlowBody( ory.UpdateLoginFlowWithPasswordMethodAsUpdateLoginFlowBody(&ory.UpdateLoginFlowWithPasswordMethod{ Method: "password", Password: password, diff --git a/examples/go/selfservice/logout/main.go b/examples/go/selfservice/logout/main.go index 0ecb6eedd096..9d2bd02c2be2 100644 --- a/examples/go/selfservice/logout/main.go +++ b/examples/go/selfservice/logout/main.go @@ -23,7 +23,7 @@ func performLogout() { _, sessionToken := pkg.CreateIdentityWithSession(client, email, password) // Log out using session token - res, err := client.FrontendApi.PerformNativeLogout(context.Background()). + res, err := client.FrontendAPI.PerformNativeLogout(context.Background()). PerformNativeLogoutBody(ory.PerformNativeLogoutBody{SessionToken: sessionToken}).Execute() pkg.SDKExitOnError(err, res) } diff --git a/examples/go/selfservice/recovery/main.go b/examples/go/selfservice/recovery/main.go index 41011b9236a0..790d5dc91ee2 100644 --- a/examples/go/selfservice/recovery/main.go +++ b/examples/go/selfservice/recovery/main.go @@ -20,7 +20,7 @@ func performRecovery(email string) *ory.RecoveryFlow { ctx := context.Background() // Initialize the flow - flow, res, err := client.FrontendApi.CreateNativeRecoveryFlow(ctx).Execute() + flow, res, err := client.FrontendAPI.CreateNativeRecoveryFlow(ctx).Execute() pkg.SDKExitOnError(err, res) // If you want, print the flow here: @@ -28,7 +28,7 @@ func performRecovery(email string) *ory.RecoveryFlow { // pkg.PrintJSONPretty(flow) // Submit the form - afterSubmit, res, err := client.FrontendApi.UpdateRecoveryFlow(ctx).Flow(flow.Id). + afterSubmit, res, err := client.FrontendAPI.UpdateRecoveryFlow(ctx).Flow(flow.Id). UpdateRecoveryFlowBody(ory.UpdateRecoveryFlowWithLinkMethodAsUpdateRecoveryFlowBody(&ory.UpdateRecoveryFlowWithLinkMethod{ Email: email, Method: "link", diff --git a/examples/go/selfservice/registration/main.go b/examples/go/selfservice/registration/main.go index a038320ffa76..a51e0e210c62 100644 --- a/examples/go/selfservice/registration/main.go +++ b/examples/go/selfservice/registration/main.go @@ -20,7 +20,7 @@ func initRegistration() *ory.SuccessfulNativeRegistration { ctx := context.Background() // Initialize the flow - flow, res, err := client.FrontendApi.CreateNativeRegistrationFlow(ctx).Execute() + flow, res, err := client.FrontendAPI.CreateNativeRegistrationFlow(ctx).Execute() pkg.SDKExitOnError(err, res) // If you want, print the flow here: @@ -30,7 +30,7 @@ func initRegistration() *ory.SuccessfulNativeRegistration { email, password := pkg.RandomCredentials() // Submit the registration flow - result, res, err := client.FrontendApi.UpdateRegistrationFlow(ctx).Flow(flow.Id).UpdateRegistrationFlowBody( + result, res, err := client.FrontendAPI.UpdateRegistrationFlow(ctx).Flow(flow.Id).UpdateRegistrationFlowBody( ory.UpdateRegistrationFlowWithPasswordMethodAsUpdateRegistrationFlowBody(&ory.UpdateRegistrationFlowWithPasswordMethod{ Method: "password", Password: password, diff --git a/examples/go/selfservice/settings/main.go b/examples/go/selfservice/settings/main.go index 7311465a245a..725b3d8f836d 100644 --- a/examples/go/selfservice/settings/main.go +++ b/examples/go/selfservice/settings/main.go @@ -22,7 +22,7 @@ func initFlow(email, password string) (string, *ory.SettingsFlow) { // Create a temporary user _, sessionToken := pkg.CreateIdentityWithSession(client, email, password) - flow, res, err := client.FrontendApi.CreateNativeSettingsFlow(context.Background()).XSessionToken(sessionToken).Execute() + flow, res, err := client.FrontendAPI.CreateNativeSettingsFlow(context.Background()).XSessionToken(sessionToken).Execute() pkg.SDKExitOnError(err, res) // If you want, print the flow here: @@ -36,7 +36,7 @@ func changePassword(email, password string) *ory.SettingsFlow { sessionToken, flow := initFlow(email, password) // Submit the form - result, res, err := client.FrontendApi.UpdateSettingsFlow(ctx).Flow(flow.Id).XSessionToken(sessionToken).UpdateSettingsFlowBody( + result, res, err := client.FrontendAPI.UpdateSettingsFlow(ctx).Flow(flow.Id).XSessionToken(sessionToken).UpdateSettingsFlowBody( ory.UpdateSettingsFlowWithPasswordMethodAsUpdateSettingsFlowBody(&ory.UpdateSettingsFlowWithPasswordMethod{ Method: "password", Password: "not-" + password, @@ -51,7 +51,7 @@ func changeTraits(email, password string) *ory.SettingsFlow { sessionToken, flow := initFlow(email, password) // Submit the form - result, res, err := client.FrontendApi.UpdateSettingsFlow(ctx).Flow(flow.Id).XSessionToken(sessionToken).UpdateSettingsFlowBody( + result, res, err := client.FrontendAPI.UpdateSettingsFlow(ctx).Flow(flow.Id).XSessionToken(sessionToken).UpdateSettingsFlowBody( ory.UpdateSettingsFlowWithProfileMethodAsUpdateSettingsFlowBody(&ory.UpdateSettingsFlowWithProfileMethod{ Method: "profile", Traits: map[string]interface{}{ diff --git a/examples/go/selfservice/verification/main.go b/examples/go/selfservice/verification/main.go index cd587f5a8c31..86feb5bfccc9 100644 --- a/examples/go/selfservice/verification/main.go +++ b/examples/go/selfservice/verification/main.go @@ -20,7 +20,7 @@ func performVerification(email string) *ory.VerificationFlow { ctx := context.Background() // Initialize the flow - flow, res, err := client.FrontendApi.CreateNativeVerificationFlow(ctx).Execute() + flow, res, err := client.FrontendAPI.CreateNativeVerificationFlow(ctx).Execute() pkg.SDKExitOnError(err, res) // If you want, print the flow here: @@ -28,7 +28,7 @@ func performVerification(email string) *ory.VerificationFlow { // pkg.PrintJSONPretty(flow) // Submit the form - afterSubmit, res, err := client.FrontendApi.UpdateVerificationFlow(ctx).Flow(flow.Id). + afterSubmit, res, err := client.FrontendAPI.UpdateVerificationFlow(ctx).Flow(flow.Id). UpdateVerificationFlowBody(ory.UpdateVerificationFlowWithLinkMethodAsUpdateVerificationFlowBody(&ory.UpdateVerificationFlowWithLinkMethod{ Email: email, Method: "link", diff --git a/examples/go/session/tosession/main.go b/examples/go/session/tosession/main.go index ec8c30e847b2..05cbd6040bcf 100644 --- a/examples/go/session/tosession/main.go +++ b/examples/go/session/tosession/main.go @@ -19,7 +19,7 @@ func toSession() *ory.Session { email, password := pkg.RandomCredentials() _, sessionToken := pkg.CreateIdentityWithSession(client, email, password) - session, res, err := client.FrontendApi.ToSessionExecute(ory.FrontendApiApiToSessionRequest{}. + session, res, err := client.FrontendAPI.ToSessionExecute(ory.FrontendAPIApiToSessionRequest{}. XSessionToken(sessionToken)) pkg.SDKExitOnError(err, res) return session diff --git a/go.mod b/go.mod index 173064f6521c..813447070778 100644 --- a/go.mod +++ b/go.mod @@ -64,7 +64,7 @@ require ( github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe github.com/ory/analytics-go/v5 v5.0.1 - github.com/ory/client-go v0.2.0-alpha.60 + github.com/ory/client-go v1.14.3 github.com/ory/dockertest/v3 v3.10.1-0.20240704115616-d229e74b748d github.com/ory/go-acc v0.2.9-0.20230103102148-6b1c9a70dbbe github.com/ory/graceful v0.1.4-0.20230301144740-e222150c51d0 diff --git a/internal/client-go/.openapi-generator/FILES b/internal/client-go/.openapi-generator/FILES index c573997505d8..5eaa392f30a9 100644 --- a/internal/client-go/.openapi-generator/FILES +++ b/internal/client-go/.openapi-generator/FILES @@ -21,7 +21,7 @@ docs/ContinueWithSettingsUi.md docs/ContinueWithSettingsUiFlow.md docs/ContinueWithVerificationUi.md docs/ContinueWithVerificationUiFlow.md -docs/CourierApi.md +docs/CourierAPI.md docs/CourierMessageStatus.md docs/CourierMessageType.md docs/CreateIdentityBody.md @@ -33,13 +33,13 @@ docs/ErrorBrowserLocationChangeRequired.md docs/ErrorFlowReplaced.md docs/ErrorGeneric.md docs/FlowError.md -docs/FrontendApi.md +docs/FrontendAPI.md docs/GenericError.md docs/GetVersion200Response.md docs/HealthNotReadyStatus.md docs/HealthStatus.md docs/Identity.md -docs/IdentityApi.md +docs/IdentityAPI.md docs/IdentityCredentials.md docs/IdentityCredentialsCode.md docs/IdentityCredentialsOidc.md @@ -62,7 +62,7 @@ docs/LoginFlowState.md docs/LogoutFlow.md docs/Message.md docs/MessageDispatch.md -docs/MetadataApi.md +docs/MetadataAPI.md docs/NeedsPrivilegedSessionError.md docs/OAuth2Client.md docs/OAuth2ConsentRequestOpenIDConnectContext.md diff --git a/internal/client-go/README.md b/internal/client-go/README.md index 85af88a0d079..6e2097d9a320 100644 --- a/internal/client-go/README.md +++ b/internal/client-go/README.md @@ -79,59 +79,59 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*CourierApi* | [**GetCourierMessage**](docs/CourierApi.md#getcouriermessage) | **Get** /admin/courier/messages/{id} | Get a Message -*CourierApi* | [**ListCourierMessages**](docs/CourierApi.md#listcouriermessages) | **Get** /admin/courier/messages | List Messages -*FrontendApi* | [**CreateBrowserLoginFlow**](docs/FrontendApi.md#createbrowserloginflow) | **Get** /self-service/login/browser | Create Login Flow for Browsers -*FrontendApi* | [**CreateBrowserLogoutFlow**](docs/FrontendApi.md#createbrowserlogoutflow) | **Get** /self-service/logout/browser | Create a Logout URL for Browsers -*FrontendApi* | [**CreateBrowserRecoveryFlow**](docs/FrontendApi.md#createbrowserrecoveryflow) | **Get** /self-service/recovery/browser | Create Recovery Flow for Browsers -*FrontendApi* | [**CreateBrowserRegistrationFlow**](docs/FrontendApi.md#createbrowserregistrationflow) | **Get** /self-service/registration/browser | Create Registration Flow for Browsers -*FrontendApi* | [**CreateBrowserSettingsFlow**](docs/FrontendApi.md#createbrowsersettingsflow) | **Get** /self-service/settings/browser | Create Settings Flow for Browsers -*FrontendApi* | [**CreateBrowserVerificationFlow**](docs/FrontendApi.md#createbrowserverificationflow) | **Get** /self-service/verification/browser | Create Verification Flow for Browser Clients -*FrontendApi* | [**CreateNativeLoginFlow**](docs/FrontendApi.md#createnativeloginflow) | **Get** /self-service/login/api | Create Login Flow for Native Apps -*FrontendApi* | [**CreateNativeRecoveryFlow**](docs/FrontendApi.md#createnativerecoveryflow) | **Get** /self-service/recovery/api | Create Recovery Flow for Native Apps -*FrontendApi* | [**CreateNativeRegistrationFlow**](docs/FrontendApi.md#createnativeregistrationflow) | **Get** /self-service/registration/api | Create Registration Flow for Native Apps -*FrontendApi* | [**CreateNativeSettingsFlow**](docs/FrontendApi.md#createnativesettingsflow) | **Get** /self-service/settings/api | Create Settings Flow for Native Apps -*FrontendApi* | [**CreateNativeVerificationFlow**](docs/FrontendApi.md#createnativeverificationflow) | **Get** /self-service/verification/api | Create Verification Flow for Native Apps -*FrontendApi* | [**DisableMyOtherSessions**](docs/FrontendApi.md#disablemyothersessions) | **Delete** /sessions | Disable my other sessions -*FrontendApi* | [**DisableMySession**](docs/FrontendApi.md#disablemysession) | **Delete** /sessions/{id} | Disable one of my sessions -*FrontendApi* | [**ExchangeSessionToken**](docs/FrontendApi.md#exchangesessiontoken) | **Get** /sessions/token-exchange | Exchange Session Token -*FrontendApi* | [**GetFlowError**](docs/FrontendApi.md#getflowerror) | **Get** /self-service/errors | Get User-Flow Errors -*FrontendApi* | [**GetLoginFlow**](docs/FrontendApi.md#getloginflow) | **Get** /self-service/login/flows | Get Login Flow -*FrontendApi* | [**GetRecoveryFlow**](docs/FrontendApi.md#getrecoveryflow) | **Get** /self-service/recovery/flows | Get Recovery Flow -*FrontendApi* | [**GetRegistrationFlow**](docs/FrontendApi.md#getregistrationflow) | **Get** /self-service/registration/flows | Get Registration Flow -*FrontendApi* | [**GetSettingsFlow**](docs/FrontendApi.md#getsettingsflow) | **Get** /self-service/settings/flows | Get Settings Flow -*FrontendApi* | [**GetVerificationFlow**](docs/FrontendApi.md#getverificationflow) | **Get** /self-service/verification/flows | Get Verification Flow -*FrontendApi* | [**GetWebAuthnJavaScript**](docs/FrontendApi.md#getwebauthnjavascript) | **Get** /.well-known/ory/webauthn.js | Get WebAuthn JavaScript -*FrontendApi* | [**ListMySessions**](docs/FrontendApi.md#listmysessions) | **Get** /sessions | Get My Active Sessions -*FrontendApi* | [**PerformNativeLogout**](docs/FrontendApi.md#performnativelogout) | **Delete** /self-service/logout/api | Perform Logout for Native Apps -*FrontendApi* | [**ToSession**](docs/FrontendApi.md#tosession) | **Get** /sessions/whoami | Check Who the Current HTTP Session Belongs To -*FrontendApi* | [**UpdateLoginFlow**](docs/FrontendApi.md#updateloginflow) | **Post** /self-service/login | Submit a Login Flow -*FrontendApi* | [**UpdateLogoutFlow**](docs/FrontendApi.md#updatelogoutflow) | **Get** /self-service/logout | Update Logout Flow -*FrontendApi* | [**UpdateRecoveryFlow**](docs/FrontendApi.md#updaterecoveryflow) | **Post** /self-service/recovery | Update Recovery Flow -*FrontendApi* | [**UpdateRegistrationFlow**](docs/FrontendApi.md#updateregistrationflow) | **Post** /self-service/registration | Update Registration Flow -*FrontendApi* | [**UpdateSettingsFlow**](docs/FrontendApi.md#updatesettingsflow) | **Post** /self-service/settings | Complete Settings Flow -*FrontendApi* | [**UpdateVerificationFlow**](docs/FrontendApi.md#updateverificationflow) | **Post** /self-service/verification | Complete Verification Flow -*IdentityApi* | [**BatchPatchIdentities**](docs/IdentityApi.md#batchpatchidentities) | **Patch** /admin/identities | Create multiple identities -*IdentityApi* | [**CreateIdentity**](docs/IdentityApi.md#createidentity) | **Post** /admin/identities | Create an Identity -*IdentityApi* | [**CreateRecoveryCodeForIdentity**](docs/IdentityApi.md#createrecoverycodeforidentity) | **Post** /admin/recovery/code | Create a Recovery Code -*IdentityApi* | [**CreateRecoveryLinkForIdentity**](docs/IdentityApi.md#createrecoverylinkforidentity) | **Post** /admin/recovery/link | Create a Recovery Link -*IdentityApi* | [**DeleteIdentity**](docs/IdentityApi.md#deleteidentity) | **Delete** /admin/identities/{id} | Delete an Identity -*IdentityApi* | [**DeleteIdentityCredentials**](docs/IdentityApi.md#deleteidentitycredentials) | **Delete** /admin/identities/{id}/credentials/{type} | Delete a credential for a specific identity -*IdentityApi* | [**DeleteIdentitySessions**](docs/IdentityApi.md#deleteidentitysessions) | **Delete** /admin/identities/{id}/sessions | Delete & Invalidate an Identity's Sessions -*IdentityApi* | [**DisableSession**](docs/IdentityApi.md#disablesession) | **Delete** /admin/sessions/{id} | Deactivate a Session -*IdentityApi* | [**ExtendSession**](docs/IdentityApi.md#extendsession) | **Patch** /admin/sessions/{id}/extend | Extend a Session -*IdentityApi* | [**GetIdentity**](docs/IdentityApi.md#getidentity) | **Get** /admin/identities/{id} | Get an Identity -*IdentityApi* | [**GetIdentitySchema**](docs/IdentityApi.md#getidentityschema) | **Get** /schemas/{id} | Get Identity JSON Schema -*IdentityApi* | [**GetSession**](docs/IdentityApi.md#getsession) | **Get** /admin/sessions/{id} | Get Session -*IdentityApi* | [**ListIdentities**](docs/IdentityApi.md#listidentities) | **Get** /admin/identities | List Identities -*IdentityApi* | [**ListIdentitySchemas**](docs/IdentityApi.md#listidentityschemas) | **Get** /schemas | Get all Identity Schemas -*IdentityApi* | [**ListIdentitySessions**](docs/IdentityApi.md#listidentitysessions) | **Get** /admin/identities/{id}/sessions | List an Identity's Sessions -*IdentityApi* | [**ListSessions**](docs/IdentityApi.md#listsessions) | **Get** /admin/sessions | List All Sessions -*IdentityApi* | [**PatchIdentity**](docs/IdentityApi.md#patchidentity) | **Patch** /admin/identities/{id} | Patch an Identity -*IdentityApi* | [**UpdateIdentity**](docs/IdentityApi.md#updateidentity) | **Put** /admin/identities/{id} | Update an Identity -*MetadataApi* | [**GetVersion**](docs/MetadataApi.md#getversion) | **Get** /version | Return Running Software Version. -*MetadataApi* | [**IsAlive**](docs/MetadataApi.md#isalive) | **Get** /health/alive | Check HTTP Server Status -*MetadataApi* | [**IsReady**](docs/MetadataApi.md#isready) | **Get** /health/ready | Check HTTP Server and Database Status +*CourierAPI* | [**GetCourierMessage**](docs/CourierAPI.md#getcouriermessage) | **Get** /admin/courier/messages/{id} | Get a Message +*CourierAPI* | [**ListCourierMessages**](docs/CourierAPI.md#listcouriermessages) | **Get** /admin/courier/messages | List Messages +*FrontendAPI* | [**CreateBrowserLoginFlow**](docs/FrontendAPI.md#createbrowserloginflow) | **Get** /self-service/login/browser | Create Login Flow for Browsers +*FrontendAPI* | [**CreateBrowserLogoutFlow**](docs/FrontendAPI.md#createbrowserlogoutflow) | **Get** /self-service/logout/browser | Create a Logout URL for Browsers +*FrontendAPI* | [**CreateBrowserRecoveryFlow**](docs/FrontendAPI.md#createbrowserrecoveryflow) | **Get** /self-service/recovery/browser | Create Recovery Flow for Browsers +*FrontendAPI* | [**CreateBrowserRegistrationFlow**](docs/FrontendAPI.md#createbrowserregistrationflow) | **Get** /self-service/registration/browser | Create Registration Flow for Browsers +*FrontendAPI* | [**CreateBrowserSettingsFlow**](docs/FrontendAPI.md#createbrowsersettingsflow) | **Get** /self-service/settings/browser | Create Settings Flow for Browsers +*FrontendAPI* | [**CreateBrowserVerificationFlow**](docs/FrontendAPI.md#createbrowserverificationflow) | **Get** /self-service/verification/browser | Create Verification Flow for Browser Clients +*FrontendAPI* | [**CreateNativeLoginFlow**](docs/FrontendAPI.md#createnativeloginflow) | **Get** /self-service/login/api | Create Login Flow for Native Apps +*FrontendAPI* | [**CreateNativeRecoveryFlow**](docs/FrontendAPI.md#createnativerecoveryflow) | **Get** /self-service/recovery/api | Create Recovery Flow for Native Apps +*FrontendAPI* | [**CreateNativeRegistrationFlow**](docs/FrontendAPI.md#createnativeregistrationflow) | **Get** /self-service/registration/api | Create Registration Flow for Native Apps +*FrontendAPI* | [**CreateNativeSettingsFlow**](docs/FrontendAPI.md#createnativesettingsflow) | **Get** /self-service/settings/api | Create Settings Flow for Native Apps +*FrontendAPI* | [**CreateNativeVerificationFlow**](docs/FrontendAPI.md#createnativeverificationflow) | **Get** /self-service/verification/api | Create Verification Flow for Native Apps +*FrontendAPI* | [**DisableMyOtherSessions**](docs/FrontendAPI.md#disablemyothersessions) | **Delete** /sessions | Disable my other sessions +*FrontendAPI* | [**DisableMySession**](docs/FrontendAPI.md#disablemysession) | **Delete** /sessions/{id} | Disable one of my sessions +*FrontendAPI* | [**ExchangeSessionToken**](docs/FrontendAPI.md#exchangesessiontoken) | **Get** /sessions/token-exchange | Exchange Session Token +*FrontendAPI* | [**GetFlowError**](docs/FrontendAPI.md#getflowerror) | **Get** /self-service/errors | Get User-Flow Errors +*FrontendAPI* | [**GetLoginFlow**](docs/FrontendAPI.md#getloginflow) | **Get** /self-service/login/flows | Get Login Flow +*FrontendAPI* | [**GetRecoveryFlow**](docs/FrontendAPI.md#getrecoveryflow) | **Get** /self-service/recovery/flows | Get Recovery Flow +*FrontendAPI* | [**GetRegistrationFlow**](docs/FrontendAPI.md#getregistrationflow) | **Get** /self-service/registration/flows | Get Registration Flow +*FrontendAPI* | [**GetSettingsFlow**](docs/FrontendAPI.md#getsettingsflow) | **Get** /self-service/settings/flows | Get Settings Flow +*FrontendAPI* | [**GetVerificationFlow**](docs/FrontendAPI.md#getverificationflow) | **Get** /self-service/verification/flows | Get Verification Flow +*FrontendAPI* | [**GetWebAuthnJavaScript**](docs/FrontendAPI.md#getwebauthnjavascript) | **Get** /.well-known/ory/webauthn.js | Get WebAuthn JavaScript +*FrontendAPI* | [**ListMySessions**](docs/FrontendAPI.md#listmysessions) | **Get** /sessions | Get My Active Sessions +*FrontendAPI* | [**PerformNativeLogout**](docs/FrontendAPI.md#performnativelogout) | **Delete** /self-service/logout/api | Perform Logout for Native Apps +*FrontendAPI* | [**ToSession**](docs/FrontendAPI.md#tosession) | **Get** /sessions/whoami | Check Who the Current HTTP Session Belongs To +*FrontendAPI* | [**UpdateLoginFlow**](docs/FrontendAPI.md#updateloginflow) | **Post** /self-service/login | Submit a Login Flow +*FrontendAPI* | [**UpdateLogoutFlow**](docs/FrontendAPI.md#updatelogoutflow) | **Get** /self-service/logout | Update Logout Flow +*FrontendAPI* | [**UpdateRecoveryFlow**](docs/FrontendAPI.md#updaterecoveryflow) | **Post** /self-service/recovery | Update Recovery Flow +*FrontendAPI* | [**UpdateRegistrationFlow**](docs/FrontendAPI.md#updateregistrationflow) | **Post** /self-service/registration | Update Registration Flow +*FrontendAPI* | [**UpdateSettingsFlow**](docs/FrontendAPI.md#updatesettingsflow) | **Post** /self-service/settings | Complete Settings Flow +*FrontendAPI* | [**UpdateVerificationFlow**](docs/FrontendAPI.md#updateverificationflow) | **Post** /self-service/verification | Complete Verification Flow +*IdentityAPI* | [**BatchPatchIdentities**](docs/IdentityAPI.md#batchpatchidentities) | **Patch** /admin/identities | Create multiple identities +*IdentityAPI* | [**CreateIdentity**](docs/IdentityAPI.md#createidentity) | **Post** /admin/identities | Create an Identity +*IdentityAPI* | [**CreateRecoveryCodeForIdentity**](docs/IdentityAPI.md#createrecoverycodeforidentity) | **Post** /admin/recovery/code | Create a Recovery Code +*IdentityAPI* | [**CreateRecoveryLinkForIdentity**](docs/IdentityAPI.md#createrecoverylinkforidentity) | **Post** /admin/recovery/link | Create a Recovery Link +*IdentityAPI* | [**DeleteIdentity**](docs/IdentityAPI.md#deleteidentity) | **Delete** /admin/identities/{id} | Delete an Identity +*IdentityAPI* | [**DeleteIdentityCredentials**](docs/IdentityAPI.md#deleteidentitycredentials) | **Delete** /admin/identities/{id}/credentials/{type} | Delete a credential for a specific identity +*IdentityAPI* | [**DeleteIdentitySessions**](docs/IdentityAPI.md#deleteidentitysessions) | **Delete** /admin/identities/{id}/sessions | Delete & Invalidate an Identity's Sessions +*IdentityAPI* | [**DisableSession**](docs/IdentityAPI.md#disablesession) | **Delete** /admin/sessions/{id} | Deactivate a Session +*IdentityAPI* | [**ExtendSession**](docs/IdentityAPI.md#extendsession) | **Patch** /admin/sessions/{id}/extend | Extend a Session +*IdentityAPI* | [**GetIdentity**](docs/IdentityAPI.md#getidentity) | **Get** /admin/identities/{id} | Get an Identity +*IdentityAPI* | [**GetIdentitySchema**](docs/IdentityAPI.md#getidentityschema) | **Get** /schemas/{id} | Get Identity JSON Schema +*IdentityAPI* | [**GetSession**](docs/IdentityAPI.md#getsession) | **Get** /admin/sessions/{id} | Get Session +*IdentityAPI* | [**ListIdentities**](docs/IdentityAPI.md#listidentities) | **Get** /admin/identities | List Identities +*IdentityAPI* | [**ListIdentitySchemas**](docs/IdentityAPI.md#listidentityschemas) | **Get** /schemas | Get all Identity Schemas +*IdentityAPI* | [**ListIdentitySessions**](docs/IdentityAPI.md#listidentitysessions) | **Get** /admin/identities/{id}/sessions | List an Identity's Sessions +*IdentityAPI* | [**ListSessions**](docs/IdentityAPI.md#listsessions) | **Get** /admin/sessions | List All Sessions +*IdentityAPI* | [**PatchIdentity**](docs/IdentityAPI.md#patchidentity) | **Patch** /admin/identities/{id} | Patch an Identity +*IdentityAPI* | [**UpdateIdentity**](docs/IdentityAPI.md#updateidentity) | **Put** /admin/identities/{id} | Update an Identity +*MetadataAPI* | [**GetVersion**](docs/MetadataAPI.md#getversion) | **Get** /version | Return Running Software Version. +*MetadataAPI* | [**IsAlive**](docs/MetadataAPI.md#isalive) | **Get** /health/alive | Check HTTP Server Status +*MetadataAPI* | [**IsReady**](docs/MetadataAPI.md#isready) | **Get** /health/ready | Check HTTP Server and Database Status ## Documentation For Models diff --git a/internal/client-go/api_courier.go b/internal/client-go/api_courier.go index 91bcc08025eb..36f10d0a6281 100644 --- a/internal/client-go/api_courier.go +++ b/internal/client-go/api_courier.go @@ -25,48 +25,48 @@ var ( _ context.Context ) -type CourierApi interface { +type CourierAPI interface { /* * GetCourierMessage Get a Message * Gets a specific messages by the given ID. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id MessageID is the ID of the message. - * @return CourierApiApiGetCourierMessageRequest + * @return CourierAPIApiGetCourierMessageRequest */ - GetCourierMessage(ctx context.Context, id string) CourierApiApiGetCourierMessageRequest + GetCourierMessage(ctx context.Context, id string) CourierAPIApiGetCourierMessageRequest /* * GetCourierMessageExecute executes the request * @return Message */ - GetCourierMessageExecute(r CourierApiApiGetCourierMessageRequest) (*Message, *http.Response, error) + GetCourierMessageExecute(r CourierAPIApiGetCourierMessageRequest) (*Message, *http.Response, error) /* * ListCourierMessages List Messages * Lists all messages by given status and recipient. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return CourierApiApiListCourierMessagesRequest + * @return CourierAPIApiListCourierMessagesRequest */ - ListCourierMessages(ctx context.Context) CourierApiApiListCourierMessagesRequest + ListCourierMessages(ctx context.Context) CourierAPIApiListCourierMessagesRequest /* * ListCourierMessagesExecute executes the request * @return []Message */ - ListCourierMessagesExecute(r CourierApiApiListCourierMessagesRequest) ([]Message, *http.Response, error) + ListCourierMessagesExecute(r CourierAPIApiListCourierMessagesRequest) ([]Message, *http.Response, error) } -// CourierApiService CourierApi service -type CourierApiService service +// CourierAPIService CourierAPI service +type CourierAPIService service -type CourierApiApiGetCourierMessageRequest struct { +type CourierAPIApiGetCourierMessageRequest struct { ctx context.Context - ApiService CourierApi + ApiService CourierAPI id string } -func (r CourierApiApiGetCourierMessageRequest) Execute() (*Message, *http.Response, error) { +func (r CourierAPIApiGetCourierMessageRequest) Execute() (*Message, *http.Response, error) { return r.ApiService.GetCourierMessageExecute(r) } @@ -75,10 +75,10 @@ func (r CourierApiApiGetCourierMessageRequest) Execute() (*Message, *http.Respon * Gets a specific messages by the given ID. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id MessageID is the ID of the message. - * @return CourierApiApiGetCourierMessageRequest + * @return CourierAPIApiGetCourierMessageRequest */ -func (a *CourierApiService) GetCourierMessage(ctx context.Context, id string) CourierApiApiGetCourierMessageRequest { - return CourierApiApiGetCourierMessageRequest{ +func (a *CourierAPIService) GetCourierMessage(ctx context.Context, id string) CourierAPIApiGetCourierMessageRequest { + return CourierAPIApiGetCourierMessageRequest{ ApiService: a, ctx: ctx, id: id, @@ -89,7 +89,7 @@ func (a *CourierApiService) GetCourierMessage(ctx context.Context, id string) Co * Execute executes the request * @return Message */ -func (a *CourierApiService) GetCourierMessageExecute(r CourierApiApiGetCourierMessageRequest) (*Message, *http.Response, error) { +func (a *CourierAPIService) GetCourierMessageExecute(r CourierAPIApiGetCourierMessageRequest) (*Message, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -99,7 +99,7 @@ func (a *CourierApiService) GetCourierMessageExecute(r CourierApiApiGetCourierMe localVarReturnValue *Message ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CourierApiService.GetCourierMessage") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CourierAPIService.GetCourierMessage") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -196,33 +196,33 @@ func (a *CourierApiService) GetCourierMessageExecute(r CourierApiApiGetCourierMe return localVarReturnValue, localVarHTTPResponse, nil } -type CourierApiApiListCourierMessagesRequest struct { +type CourierAPIApiListCourierMessagesRequest struct { ctx context.Context - ApiService CourierApi + ApiService CourierAPI pageSize *int64 pageToken *string status *CourierMessageStatus recipient *string } -func (r CourierApiApiListCourierMessagesRequest) PageSize(pageSize int64) CourierApiApiListCourierMessagesRequest { +func (r CourierAPIApiListCourierMessagesRequest) PageSize(pageSize int64) CourierAPIApiListCourierMessagesRequest { r.pageSize = &pageSize return r } -func (r CourierApiApiListCourierMessagesRequest) PageToken(pageToken string) CourierApiApiListCourierMessagesRequest { +func (r CourierAPIApiListCourierMessagesRequest) PageToken(pageToken string) CourierAPIApiListCourierMessagesRequest { r.pageToken = &pageToken return r } -func (r CourierApiApiListCourierMessagesRequest) Status(status CourierMessageStatus) CourierApiApiListCourierMessagesRequest { +func (r CourierAPIApiListCourierMessagesRequest) Status(status CourierMessageStatus) CourierAPIApiListCourierMessagesRequest { r.status = &status return r } -func (r CourierApiApiListCourierMessagesRequest) Recipient(recipient string) CourierApiApiListCourierMessagesRequest { +func (r CourierAPIApiListCourierMessagesRequest) Recipient(recipient string) CourierAPIApiListCourierMessagesRequest { r.recipient = &recipient return r } -func (r CourierApiApiListCourierMessagesRequest) Execute() ([]Message, *http.Response, error) { +func (r CourierAPIApiListCourierMessagesRequest) Execute() ([]Message, *http.Response, error) { return r.ApiService.ListCourierMessagesExecute(r) } @@ -230,10 +230,10 @@ func (r CourierApiApiListCourierMessagesRequest) Execute() ([]Message, *http.Res * ListCourierMessages List Messages * Lists all messages by given status and recipient. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return CourierApiApiListCourierMessagesRequest + * @return CourierAPIApiListCourierMessagesRequest */ -func (a *CourierApiService) ListCourierMessages(ctx context.Context) CourierApiApiListCourierMessagesRequest { - return CourierApiApiListCourierMessagesRequest{ +func (a *CourierAPIService) ListCourierMessages(ctx context.Context) CourierAPIApiListCourierMessagesRequest { + return CourierAPIApiListCourierMessagesRequest{ ApiService: a, ctx: ctx, } @@ -243,7 +243,7 @@ func (a *CourierApiService) ListCourierMessages(ctx context.Context) CourierApiA * Execute executes the request * @return []Message */ -func (a *CourierApiService) ListCourierMessagesExecute(r CourierApiApiListCourierMessagesRequest) ([]Message, *http.Response, error) { +func (a *CourierAPIService) ListCourierMessagesExecute(r CourierAPIApiListCourierMessagesRequest) ([]Message, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -253,7 +253,7 @@ func (a *CourierApiService) ListCourierMessagesExecute(r CourierApiApiListCourie localVarReturnValue []Message ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CourierApiService.ListCourierMessages") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CourierAPIService.ListCourierMessages") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/internal/client-go/api_frontend.go b/internal/client-go/api_frontend.go index cfb87b55902a..762df5b59fe9 100644 --- a/internal/client-go/api_frontend.go +++ b/internal/client-go/api_frontend.go @@ -25,7 +25,7 @@ var ( _ context.Context ) -type FrontendApi interface { +type FrontendAPI interface { /* * CreateBrowserLoginFlow Create Login Flow for Browsers @@ -53,15 +53,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserLoginFlowRequest + * @return FrontendAPIApiCreateBrowserLoginFlowRequest */ - CreateBrowserLoginFlow(ctx context.Context) FrontendApiApiCreateBrowserLoginFlowRequest + CreateBrowserLoginFlow(ctx context.Context) FrontendAPIApiCreateBrowserLoginFlowRequest /* * CreateBrowserLoginFlowExecute executes the request * @return LoginFlow */ - CreateBrowserLoginFlowExecute(r FrontendApiApiCreateBrowserLoginFlowRequest) (*LoginFlow, *http.Response, error) + CreateBrowserLoginFlowExecute(r FrontendAPIApiCreateBrowserLoginFlowRequest) (*LoginFlow, *http.Response, error) /* * CreateBrowserLogoutFlow Create a Logout URL for Browsers @@ -76,15 +76,15 @@ type FrontendApi interface { When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserLogoutFlowRequest + * @return FrontendAPIApiCreateBrowserLogoutFlowRequest */ - CreateBrowserLogoutFlow(ctx context.Context) FrontendApiApiCreateBrowserLogoutFlowRequest + CreateBrowserLogoutFlow(ctx context.Context) FrontendAPIApiCreateBrowserLogoutFlowRequest /* * CreateBrowserLogoutFlowExecute executes the request * @return LogoutFlow */ - CreateBrowserLogoutFlowExecute(r FrontendApiApiCreateBrowserLogoutFlowRequest) (*LogoutFlow, *http.Response, error) + CreateBrowserLogoutFlowExecute(r FrontendAPIApiCreateBrowserLogoutFlowRequest) (*LogoutFlow, *http.Response, error) /* * CreateBrowserRecoveryFlow Create Recovery Flow for Browsers @@ -99,15 +99,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserRecoveryFlowRequest + * @return FrontendAPIApiCreateBrowserRecoveryFlowRequest */ - CreateBrowserRecoveryFlow(ctx context.Context) FrontendApiApiCreateBrowserRecoveryFlowRequest + CreateBrowserRecoveryFlow(ctx context.Context) FrontendAPIApiCreateBrowserRecoveryFlowRequest /* * CreateBrowserRecoveryFlowExecute executes the request * @return RecoveryFlow */ - CreateBrowserRecoveryFlowExecute(r FrontendApiApiCreateBrowserRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) + CreateBrowserRecoveryFlowExecute(r FrontendAPIApiCreateBrowserRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) /* * CreateBrowserRegistrationFlow Create Registration Flow for Browsers @@ -131,15 +131,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserRegistrationFlowRequest + * @return FrontendAPIApiCreateBrowserRegistrationFlowRequest */ - CreateBrowserRegistrationFlow(ctx context.Context) FrontendApiApiCreateBrowserRegistrationFlowRequest + CreateBrowserRegistrationFlow(ctx context.Context) FrontendAPIApiCreateBrowserRegistrationFlowRequest /* * CreateBrowserRegistrationFlowExecute executes the request * @return RegistrationFlow */ - CreateBrowserRegistrationFlowExecute(r FrontendApiApiCreateBrowserRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) + CreateBrowserRegistrationFlowExecute(r FrontendAPIApiCreateBrowserRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) /* * CreateBrowserSettingsFlow Create Settings Flow for Browsers @@ -170,15 +170,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserSettingsFlowRequest + * @return FrontendAPIApiCreateBrowserSettingsFlowRequest */ - CreateBrowserSettingsFlow(ctx context.Context) FrontendApiApiCreateBrowserSettingsFlowRequest + CreateBrowserSettingsFlow(ctx context.Context) FrontendAPIApiCreateBrowserSettingsFlowRequest /* * CreateBrowserSettingsFlowExecute executes the request * @return SettingsFlow */ - CreateBrowserSettingsFlowExecute(r FrontendApiApiCreateBrowserSettingsFlowRequest) (*SettingsFlow, *http.Response, error) + CreateBrowserSettingsFlowExecute(r FrontendAPIApiCreateBrowserSettingsFlowRequest) (*SettingsFlow, *http.Response, error) /* * CreateBrowserVerificationFlow Create Verification Flow for Browser Clients @@ -191,15 +191,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserVerificationFlowRequest + * @return FrontendAPIApiCreateBrowserVerificationFlowRequest */ - CreateBrowserVerificationFlow(ctx context.Context) FrontendApiApiCreateBrowserVerificationFlowRequest + CreateBrowserVerificationFlow(ctx context.Context) FrontendAPIApiCreateBrowserVerificationFlowRequest /* * CreateBrowserVerificationFlowExecute executes the request * @return VerificationFlow */ - CreateBrowserVerificationFlowExecute(r FrontendApiApiCreateBrowserVerificationFlowRequest) (*VerificationFlow, *http.Response, error) + CreateBrowserVerificationFlowExecute(r FrontendAPIApiCreateBrowserVerificationFlowRequest) (*VerificationFlow, *http.Response, error) /* * CreateNativeLoginFlow Create Login Flow for Native Apps @@ -224,15 +224,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeLoginFlowRequest + * @return FrontendAPIApiCreateNativeLoginFlowRequest */ - CreateNativeLoginFlow(ctx context.Context) FrontendApiApiCreateNativeLoginFlowRequest + CreateNativeLoginFlow(ctx context.Context) FrontendAPIApiCreateNativeLoginFlowRequest /* * CreateNativeLoginFlowExecute executes the request * @return LoginFlow */ - CreateNativeLoginFlowExecute(r FrontendApiApiCreateNativeLoginFlowRequest) (*LoginFlow, *http.Response, error) + CreateNativeLoginFlowExecute(r FrontendAPIApiCreateNativeLoginFlowRequest) (*LoginFlow, *http.Response, error) /* * CreateNativeRecoveryFlow Create Recovery Flow for Native Apps @@ -250,15 +250,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeRecoveryFlowRequest + * @return FrontendAPIApiCreateNativeRecoveryFlowRequest */ - CreateNativeRecoveryFlow(ctx context.Context) FrontendApiApiCreateNativeRecoveryFlowRequest + CreateNativeRecoveryFlow(ctx context.Context) FrontendAPIApiCreateNativeRecoveryFlowRequest /* * CreateNativeRecoveryFlowExecute executes the request * @return RecoveryFlow */ - CreateNativeRecoveryFlowExecute(r FrontendApiApiCreateNativeRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) + CreateNativeRecoveryFlowExecute(r FrontendAPIApiCreateNativeRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) /* * CreateNativeRegistrationFlow Create Registration Flow for Native Apps @@ -282,15 +282,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeRegistrationFlowRequest + * @return FrontendAPIApiCreateNativeRegistrationFlowRequest */ - CreateNativeRegistrationFlow(ctx context.Context) FrontendApiApiCreateNativeRegistrationFlowRequest + CreateNativeRegistrationFlow(ctx context.Context) FrontendAPIApiCreateNativeRegistrationFlowRequest /* * CreateNativeRegistrationFlowExecute executes the request * @return RegistrationFlow */ - CreateNativeRegistrationFlowExecute(r FrontendApiApiCreateNativeRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) + CreateNativeRegistrationFlowExecute(r FrontendAPIApiCreateNativeRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) /* * CreateNativeSettingsFlow Create Settings Flow for Native Apps @@ -317,15 +317,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeSettingsFlowRequest + * @return FrontendAPIApiCreateNativeSettingsFlowRequest */ - CreateNativeSettingsFlow(ctx context.Context) FrontendApiApiCreateNativeSettingsFlowRequest + CreateNativeSettingsFlow(ctx context.Context) FrontendAPIApiCreateNativeSettingsFlowRequest /* * CreateNativeSettingsFlowExecute executes the request * @return SettingsFlow */ - CreateNativeSettingsFlowExecute(r FrontendApiApiCreateNativeSettingsFlowRequest) (*SettingsFlow, *http.Response, error) + CreateNativeSettingsFlowExecute(r FrontendAPIApiCreateNativeSettingsFlowRequest) (*SettingsFlow, *http.Response, error) /* * CreateNativeVerificationFlow Create Verification Flow for Native Apps @@ -341,30 +341,30 @@ type FrontendApi interface { More information can be found at [Ory Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeVerificationFlowRequest + * @return FrontendAPIApiCreateNativeVerificationFlowRequest */ - CreateNativeVerificationFlow(ctx context.Context) FrontendApiApiCreateNativeVerificationFlowRequest + CreateNativeVerificationFlow(ctx context.Context) FrontendAPIApiCreateNativeVerificationFlowRequest /* * CreateNativeVerificationFlowExecute executes the request * @return VerificationFlow */ - CreateNativeVerificationFlowExecute(r FrontendApiApiCreateNativeVerificationFlowRequest) (*VerificationFlow, *http.Response, error) + CreateNativeVerificationFlowExecute(r FrontendAPIApiCreateNativeVerificationFlowRequest) (*VerificationFlow, *http.Response, error) /* * DisableMyOtherSessions Disable my other sessions * Calling this endpoint invalidates all except the current session that belong to the logged-in user. Session data are not deleted. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiDisableMyOtherSessionsRequest + * @return FrontendAPIApiDisableMyOtherSessionsRequest */ - DisableMyOtherSessions(ctx context.Context) FrontendApiApiDisableMyOtherSessionsRequest + DisableMyOtherSessions(ctx context.Context) FrontendAPIApiDisableMyOtherSessionsRequest /* * DisableMyOtherSessionsExecute executes the request * @return DeleteMySessionsCount */ - DisableMyOtherSessionsExecute(r FrontendApiApiDisableMyOtherSessionsRequest) (*DeleteMySessionsCount, *http.Response, error) + DisableMyOtherSessionsExecute(r FrontendAPIApiDisableMyOtherSessionsRequest) (*DeleteMySessionsCount, *http.Response, error) /* * DisableMySession Disable one of my sessions @@ -372,27 +372,27 @@ type FrontendApi interface { Session data are not deleted. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return FrontendApiApiDisableMySessionRequest + * @return FrontendAPIApiDisableMySessionRequest */ - DisableMySession(ctx context.Context, id string) FrontendApiApiDisableMySessionRequest + DisableMySession(ctx context.Context, id string) FrontendAPIApiDisableMySessionRequest /* * DisableMySessionExecute executes the request */ - DisableMySessionExecute(r FrontendApiApiDisableMySessionRequest) (*http.Response, error) + DisableMySessionExecute(r FrontendAPIApiDisableMySessionRequest) (*http.Response, error) /* * ExchangeSessionToken Exchange Session Token * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiExchangeSessionTokenRequest + * @return FrontendAPIApiExchangeSessionTokenRequest */ - ExchangeSessionToken(ctx context.Context) FrontendApiApiExchangeSessionTokenRequest + ExchangeSessionToken(ctx context.Context) FrontendAPIApiExchangeSessionTokenRequest /* * ExchangeSessionTokenExecute executes the request * @return SuccessfulNativeLogin */ - ExchangeSessionTokenExecute(r FrontendApiApiExchangeSessionTokenRequest) (*SuccessfulNativeLogin, *http.Response, error) + ExchangeSessionTokenExecute(r FrontendAPIApiExchangeSessionTokenRequest) (*SuccessfulNativeLogin, *http.Response, error) /* * GetFlowError Get User-Flow Errors @@ -404,15 +404,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetFlowErrorRequest + * @return FrontendAPIApiGetFlowErrorRequest */ - GetFlowError(ctx context.Context) FrontendApiApiGetFlowErrorRequest + GetFlowError(ctx context.Context) FrontendAPIApiGetFlowErrorRequest /* * GetFlowErrorExecute executes the request * @return FlowError */ - GetFlowErrorExecute(r FrontendApiApiGetFlowErrorRequest) (*FlowError, *http.Response, error) + GetFlowErrorExecute(r FrontendAPIApiGetFlowErrorRequest) (*FlowError, *http.Response, error) /* * GetLoginFlow Get Login Flow @@ -440,15 +440,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetLoginFlowRequest + * @return FrontendAPIApiGetLoginFlowRequest */ - GetLoginFlow(ctx context.Context) FrontendApiApiGetLoginFlowRequest + GetLoginFlow(ctx context.Context) FrontendAPIApiGetLoginFlowRequest /* * GetLoginFlowExecute executes the request * @return LoginFlow */ - GetLoginFlowExecute(r FrontendApiApiGetLoginFlowRequest) (*LoginFlow, *http.Response, error) + GetLoginFlowExecute(r FrontendAPIApiGetLoginFlowRequest) (*LoginFlow, *http.Response, error) /* * GetRecoveryFlow Get Recovery Flow @@ -471,15 +471,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetRecoveryFlowRequest + * @return FrontendAPIApiGetRecoveryFlowRequest */ - GetRecoveryFlow(ctx context.Context) FrontendApiApiGetRecoveryFlowRequest + GetRecoveryFlow(ctx context.Context) FrontendAPIApiGetRecoveryFlowRequest /* * GetRecoveryFlowExecute executes the request * @return RecoveryFlow */ - GetRecoveryFlowExecute(r FrontendApiApiGetRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) + GetRecoveryFlowExecute(r FrontendAPIApiGetRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) /* * GetRegistrationFlow Get Registration Flow @@ -507,15 +507,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetRegistrationFlowRequest + * @return FrontendAPIApiGetRegistrationFlowRequest */ - GetRegistrationFlow(ctx context.Context) FrontendApiApiGetRegistrationFlowRequest + GetRegistrationFlow(ctx context.Context) FrontendAPIApiGetRegistrationFlowRequest /* * GetRegistrationFlowExecute executes the request * @return RegistrationFlow */ - GetRegistrationFlowExecute(r FrontendApiApiGetRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) + GetRegistrationFlowExecute(r FrontendAPIApiGetRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) /* * GetSettingsFlow Get Settings Flow @@ -539,15 +539,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetSettingsFlowRequest + * @return FrontendAPIApiGetSettingsFlowRequest */ - GetSettingsFlow(ctx context.Context) FrontendApiApiGetSettingsFlowRequest + GetSettingsFlow(ctx context.Context) FrontendAPIApiGetSettingsFlowRequest /* * GetSettingsFlowExecute executes the request * @return SettingsFlow */ - GetSettingsFlowExecute(r FrontendApiApiGetSettingsFlowRequest) (*SettingsFlow, *http.Response, error) + GetSettingsFlowExecute(r FrontendAPIApiGetSettingsFlowRequest) (*SettingsFlow, *http.Response, error) /* * GetVerificationFlow Get Verification Flow @@ -570,15 +570,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetVerificationFlowRequest + * @return FrontendAPIApiGetVerificationFlowRequest */ - GetVerificationFlow(ctx context.Context) FrontendApiApiGetVerificationFlowRequest + GetVerificationFlow(ctx context.Context) FrontendAPIApiGetVerificationFlowRequest /* * GetVerificationFlowExecute executes the request * @return VerificationFlow */ - GetVerificationFlowExecute(r FrontendApiApiGetVerificationFlowRequest) (*VerificationFlow, *http.Response, error) + GetVerificationFlowExecute(r FrontendAPIApiGetVerificationFlowRequest) (*VerificationFlow, *http.Response, error) /* * GetWebAuthnJavaScript Get WebAuthn JavaScript @@ -592,30 +592,30 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetWebAuthnJavaScriptRequest + * @return FrontendAPIApiGetWebAuthnJavaScriptRequest */ - GetWebAuthnJavaScript(ctx context.Context) FrontendApiApiGetWebAuthnJavaScriptRequest + GetWebAuthnJavaScript(ctx context.Context) FrontendAPIApiGetWebAuthnJavaScriptRequest /* * GetWebAuthnJavaScriptExecute executes the request * @return string */ - GetWebAuthnJavaScriptExecute(r FrontendApiApiGetWebAuthnJavaScriptRequest) (string, *http.Response, error) + GetWebAuthnJavaScriptExecute(r FrontendAPIApiGetWebAuthnJavaScriptRequest) (string, *http.Response, error) /* * ListMySessions Get My Active Sessions * This endpoints returns all other active sessions that belong to the logged-in user. The current session can be retrieved by calling the `/sessions/whoami` endpoint. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiListMySessionsRequest + * @return FrontendAPIApiListMySessionsRequest */ - ListMySessions(ctx context.Context) FrontendApiApiListMySessionsRequest + ListMySessions(ctx context.Context) FrontendAPIApiListMySessionsRequest /* * ListMySessionsExecute executes the request * @return []Session */ - ListMySessionsExecute(r FrontendApiApiListMySessionsRequest) ([]Session, *http.Response, error) + ListMySessionsExecute(r FrontendAPIApiListMySessionsRequest) ([]Session, *http.Response, error) /* * PerformNativeLogout Perform Logout for Native Apps @@ -628,14 +628,14 @@ type FrontendApi interface { This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiPerformNativeLogoutRequest + * @return FrontendAPIApiPerformNativeLogoutRequest */ - PerformNativeLogout(ctx context.Context) FrontendApiApiPerformNativeLogoutRequest + PerformNativeLogout(ctx context.Context) FrontendAPIApiPerformNativeLogoutRequest /* * PerformNativeLogoutExecute executes the request */ - PerformNativeLogoutExecute(r FrontendApiApiPerformNativeLogoutRequest) (*http.Response, error) + PerformNativeLogoutExecute(r FrontendAPIApiPerformNativeLogoutRequest) (*http.Response, error) /* * ToSession Check Who the Current HTTP Session Belongs To @@ -699,15 +699,15 @@ type FrontendApi interface { `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiToSessionRequest + * @return FrontendAPIApiToSessionRequest */ - ToSession(ctx context.Context) FrontendApiApiToSessionRequest + ToSession(ctx context.Context) FrontendAPIApiToSessionRequest /* * ToSessionExecute executes the request * @return Session */ - ToSessionExecute(r FrontendApiApiToSessionRequest) (*Session, *http.Response, error) + ToSessionExecute(r FrontendAPIApiToSessionRequest) (*Session, *http.Response, error) /* * UpdateLoginFlow Submit a Login Flow @@ -739,15 +739,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateLoginFlowRequest + * @return FrontendAPIApiUpdateLoginFlowRequest */ - UpdateLoginFlow(ctx context.Context) FrontendApiApiUpdateLoginFlowRequest + UpdateLoginFlow(ctx context.Context) FrontendAPIApiUpdateLoginFlowRequest /* * UpdateLoginFlowExecute executes the request * @return SuccessfulNativeLogin */ - UpdateLoginFlowExecute(r FrontendApiApiUpdateLoginFlowRequest) (*SuccessfulNativeLogin, *http.Response, error) + UpdateLoginFlowExecute(r FrontendAPIApiUpdateLoginFlowRequest) (*SuccessfulNativeLogin, *http.Response, error) /* * UpdateLogoutFlow Update Logout Flow @@ -765,14 +765,14 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateLogoutFlowRequest + * @return FrontendAPIApiUpdateLogoutFlowRequest */ - UpdateLogoutFlow(ctx context.Context) FrontendApiApiUpdateLogoutFlowRequest + UpdateLogoutFlow(ctx context.Context) FrontendAPIApiUpdateLogoutFlowRequest /* * UpdateLogoutFlowExecute executes the request */ - UpdateLogoutFlowExecute(r FrontendApiApiUpdateLogoutFlowRequest) (*http.Response, error) + UpdateLogoutFlowExecute(r FrontendAPIApiUpdateLogoutFlowRequest) (*http.Response, error) /* * UpdateRecoveryFlow Update Recovery Flow @@ -793,15 +793,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateRecoveryFlowRequest + * @return FrontendAPIApiUpdateRecoveryFlowRequest */ - UpdateRecoveryFlow(ctx context.Context) FrontendApiApiUpdateRecoveryFlowRequest + UpdateRecoveryFlow(ctx context.Context) FrontendAPIApiUpdateRecoveryFlowRequest /* * UpdateRecoveryFlowExecute executes the request * @return RecoveryFlow */ - UpdateRecoveryFlowExecute(r FrontendApiApiUpdateRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) + UpdateRecoveryFlowExecute(r FrontendAPIApiUpdateRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) /* * UpdateRegistrationFlow Update Registration Flow @@ -834,15 +834,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateRegistrationFlowRequest + * @return FrontendAPIApiUpdateRegistrationFlowRequest */ - UpdateRegistrationFlow(ctx context.Context) FrontendApiApiUpdateRegistrationFlowRequest + UpdateRegistrationFlow(ctx context.Context) FrontendAPIApiUpdateRegistrationFlowRequest /* * UpdateRegistrationFlowExecute executes the request * @return SuccessfulNativeRegistration */ - UpdateRegistrationFlowExecute(r FrontendApiApiUpdateRegistrationFlowRequest) (*SuccessfulNativeRegistration, *http.Response, error) + UpdateRegistrationFlowExecute(r FrontendAPIApiUpdateRegistrationFlowRequest) (*SuccessfulNativeRegistration, *http.Response, error) /* * UpdateSettingsFlow Complete Settings Flow @@ -890,15 +890,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateSettingsFlowRequest + * @return FrontendAPIApiUpdateSettingsFlowRequest */ - UpdateSettingsFlow(ctx context.Context) FrontendApiApiUpdateSettingsFlowRequest + UpdateSettingsFlow(ctx context.Context) FrontendAPIApiUpdateSettingsFlowRequest /* * UpdateSettingsFlowExecute executes the request * @return SettingsFlow */ - UpdateSettingsFlowExecute(r FrontendApiApiUpdateSettingsFlowRequest) (*SettingsFlow, *http.Response, error) + UpdateSettingsFlowExecute(r FrontendAPIApiUpdateSettingsFlowRequest) (*SettingsFlow, *http.Response, error) /* * UpdateVerificationFlow Complete Verification Flow @@ -919,23 +919,23 @@ type FrontendApi interface { More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateVerificationFlowRequest + * @return FrontendAPIApiUpdateVerificationFlowRequest */ - UpdateVerificationFlow(ctx context.Context) FrontendApiApiUpdateVerificationFlowRequest + UpdateVerificationFlow(ctx context.Context) FrontendAPIApiUpdateVerificationFlowRequest /* * UpdateVerificationFlowExecute executes the request * @return VerificationFlow */ - UpdateVerificationFlowExecute(r FrontendApiApiUpdateVerificationFlowRequest) (*VerificationFlow, *http.Response, error) + UpdateVerificationFlowExecute(r FrontendAPIApiUpdateVerificationFlowRequest) (*VerificationFlow, *http.Response, error) } -// FrontendApiService FrontendApi service -type FrontendApiService service +// FrontendAPIService FrontendAPI service +type FrontendAPIService service -type FrontendApiApiCreateBrowserLoginFlowRequest struct { +type FrontendAPIApiCreateBrowserLoginFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI refresh *bool aal *string returnTo *string @@ -945,36 +945,36 @@ type FrontendApiApiCreateBrowserLoginFlowRequest struct { via *string } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Refresh(refresh bool) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Refresh(refresh bool) FrontendAPIApiCreateBrowserLoginFlowRequest { r.refresh = &refresh return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Aal(aal string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Aal(aal string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.aal = &aal return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Cookie(cookie string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Cookie(cookie string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) LoginChallenge(loginChallenge string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) LoginChallenge(loginChallenge string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.loginChallenge = &loginChallenge return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Organization(organization string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Organization(organization string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.organization = &organization return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Via(via string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Via(via string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.via = &via return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { return r.ApiService.CreateBrowserLoginFlowExecute(r) } @@ -1005,10 +1005,10 @@ This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Fi More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserLoginFlowRequest + - @return FrontendAPIApiCreateBrowserLoginFlowRequest */ -func (a *FrontendApiService) CreateBrowserLoginFlow(ctx context.Context) FrontendApiApiCreateBrowserLoginFlowRequest { - return FrontendApiApiCreateBrowserLoginFlowRequest{ +func (a *FrontendAPIService) CreateBrowserLoginFlow(ctx context.Context) FrontendAPIApiCreateBrowserLoginFlowRequest { + return FrontendAPIApiCreateBrowserLoginFlowRequest{ ApiService: a, ctx: ctx, } @@ -1018,7 +1018,7 @@ func (a *FrontendApiService) CreateBrowserLoginFlow(ctx context.Context) Fronten * Execute executes the request * @return LoginFlow */ -func (a *FrontendApiService) CreateBrowserLoginFlowExecute(r FrontendApiApiCreateBrowserLoginFlowRequest) (*LoginFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserLoginFlowExecute(r FrontendAPIApiCreateBrowserLoginFlowRequest) (*LoginFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1028,7 +1028,7 @@ func (a *FrontendApiService) CreateBrowserLoginFlowExecute(r FrontendApiApiCreat localVarReturnValue *LoginFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserLoginFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserLoginFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1131,23 +1131,23 @@ func (a *FrontendApiService) CreateBrowserLoginFlowExecute(r FrontendApiApiCreat return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserLogoutFlowRequest struct { +type FrontendAPIApiCreateBrowserLogoutFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI cookie *string returnTo *string } -func (r FrontendApiApiCreateBrowserLogoutFlowRequest) Cookie(cookie string) FrontendApiApiCreateBrowserLogoutFlowRequest { +func (r FrontendAPIApiCreateBrowserLogoutFlowRequest) Cookie(cookie string) FrontendAPIApiCreateBrowserLogoutFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiCreateBrowserLogoutFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserLogoutFlowRequest { +func (r FrontendAPIApiCreateBrowserLogoutFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserLogoutFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserLogoutFlowRequest) Execute() (*LogoutFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserLogoutFlowRequest) Execute() (*LogoutFlow, *http.Response, error) { return r.ApiService.CreateBrowserLogoutFlowExecute(r) } @@ -1164,10 +1164,10 @@ a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserLogoutFlowRequest + - @return FrontendAPIApiCreateBrowserLogoutFlowRequest */ -func (a *FrontendApiService) CreateBrowserLogoutFlow(ctx context.Context) FrontendApiApiCreateBrowserLogoutFlowRequest { - return FrontendApiApiCreateBrowserLogoutFlowRequest{ +func (a *FrontendAPIService) CreateBrowserLogoutFlow(ctx context.Context) FrontendAPIApiCreateBrowserLogoutFlowRequest { + return FrontendAPIApiCreateBrowserLogoutFlowRequest{ ApiService: a, ctx: ctx, } @@ -1177,7 +1177,7 @@ func (a *FrontendApiService) CreateBrowserLogoutFlow(ctx context.Context) Fronte * Execute executes the request * @return LogoutFlow */ -func (a *FrontendApiService) CreateBrowserLogoutFlowExecute(r FrontendApiApiCreateBrowserLogoutFlowRequest) (*LogoutFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserLogoutFlowExecute(r FrontendAPIApiCreateBrowserLogoutFlowRequest) (*LogoutFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1187,7 +1187,7 @@ func (a *FrontendApiService) CreateBrowserLogoutFlowExecute(r FrontendApiApiCrea localVarReturnValue *LogoutFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserLogoutFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserLogoutFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1287,18 +1287,18 @@ func (a *FrontendApiService) CreateBrowserLogoutFlowExecute(r FrontendApiApiCrea return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserRecoveryFlowRequest struct { +type FrontendAPIApiCreateBrowserRecoveryFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnTo *string } -func (r FrontendApiApiCreateBrowserRecoveryFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserRecoveryFlowRequest { +func (r FrontendAPIApiCreateBrowserRecoveryFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserRecoveryFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { return r.ApiService.CreateBrowserRecoveryFlowExecute(r) } @@ -1316,10 +1316,10 @@ This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Fi More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserRecoveryFlowRequest + - @return FrontendAPIApiCreateBrowserRecoveryFlowRequest */ -func (a *FrontendApiService) CreateBrowserRecoveryFlow(ctx context.Context) FrontendApiApiCreateBrowserRecoveryFlowRequest { - return FrontendApiApiCreateBrowserRecoveryFlowRequest{ +func (a *FrontendAPIService) CreateBrowserRecoveryFlow(ctx context.Context) FrontendAPIApiCreateBrowserRecoveryFlowRequest { + return FrontendAPIApiCreateBrowserRecoveryFlowRequest{ ApiService: a, ctx: ctx, } @@ -1329,7 +1329,7 @@ func (a *FrontendApiService) CreateBrowserRecoveryFlow(ctx context.Context) Fron * Execute executes the request * @return RecoveryFlow */ -func (a *FrontendApiService) CreateBrowserRecoveryFlowExecute(r FrontendApiApiCreateBrowserRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserRecoveryFlowExecute(r FrontendAPIApiCreateBrowserRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1339,7 +1339,7 @@ func (a *FrontendApiService) CreateBrowserRecoveryFlowExecute(r FrontendApiApiCr localVarReturnValue *RecoveryFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserRecoveryFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserRecoveryFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1424,33 +1424,33 @@ func (a *FrontendApiService) CreateBrowserRecoveryFlowExecute(r FrontendApiApiCr return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserRegistrationFlowRequest struct { +type FrontendAPIApiCreateBrowserRegistrationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnTo *string loginChallenge *string afterVerificationReturnTo *string organization *string } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserRegistrationFlowRequest { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserRegistrationFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) LoginChallenge(loginChallenge string) FrontendApiApiCreateBrowserRegistrationFlowRequest { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) LoginChallenge(loginChallenge string) FrontendAPIApiCreateBrowserRegistrationFlowRequest { r.loginChallenge = &loginChallenge return r } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) AfterVerificationReturnTo(afterVerificationReturnTo string) FrontendApiApiCreateBrowserRegistrationFlowRequest { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) AfterVerificationReturnTo(afterVerificationReturnTo string) FrontendAPIApiCreateBrowserRegistrationFlowRequest { r.afterVerificationReturnTo = &afterVerificationReturnTo return r } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) Organization(organization string) FrontendApiApiCreateBrowserRegistrationFlowRequest { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) Organization(organization string) FrontendAPIApiCreateBrowserRegistrationFlowRequest { r.organization = &organization return r } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { return r.ApiService.CreateBrowserRegistrationFlowExecute(r) } @@ -1477,10 +1477,10 @@ This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Fi More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserRegistrationFlowRequest + - @return FrontendAPIApiCreateBrowserRegistrationFlowRequest */ -func (a *FrontendApiService) CreateBrowserRegistrationFlow(ctx context.Context) FrontendApiApiCreateBrowserRegistrationFlowRequest { - return FrontendApiApiCreateBrowserRegistrationFlowRequest{ +func (a *FrontendAPIService) CreateBrowserRegistrationFlow(ctx context.Context) FrontendAPIApiCreateBrowserRegistrationFlowRequest { + return FrontendAPIApiCreateBrowserRegistrationFlowRequest{ ApiService: a, ctx: ctx, } @@ -1490,7 +1490,7 @@ func (a *FrontendApiService) CreateBrowserRegistrationFlow(ctx context.Context) * Execute executes the request * @return RegistrationFlow */ -func (a *FrontendApiService) CreateBrowserRegistrationFlowExecute(r FrontendApiApiCreateBrowserRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserRegistrationFlowExecute(r FrontendAPIApiCreateBrowserRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1500,7 +1500,7 @@ func (a *FrontendApiService) CreateBrowserRegistrationFlowExecute(r FrontendApiA localVarReturnValue *RegistrationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserRegistrationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserRegistrationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1584,23 +1584,23 @@ func (a *FrontendApiService) CreateBrowserRegistrationFlowExecute(r FrontendApiA return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserSettingsFlowRequest struct { +type FrontendAPIApiCreateBrowserSettingsFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnTo *string cookie *string } -func (r FrontendApiApiCreateBrowserSettingsFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserSettingsFlowRequest { +func (r FrontendAPIApiCreateBrowserSettingsFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserSettingsFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserSettingsFlowRequest) Cookie(cookie string) FrontendApiApiCreateBrowserSettingsFlowRequest { +func (r FrontendAPIApiCreateBrowserSettingsFlowRequest) Cookie(cookie string) FrontendAPIApiCreateBrowserSettingsFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiCreateBrowserSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { return r.ApiService.CreateBrowserSettingsFlowExecute(r) } @@ -1634,10 +1634,10 @@ This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Fi More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserSettingsFlowRequest + - @return FrontendAPIApiCreateBrowserSettingsFlowRequest */ -func (a *FrontendApiService) CreateBrowserSettingsFlow(ctx context.Context) FrontendApiApiCreateBrowserSettingsFlowRequest { - return FrontendApiApiCreateBrowserSettingsFlowRequest{ +func (a *FrontendAPIService) CreateBrowserSettingsFlow(ctx context.Context) FrontendAPIApiCreateBrowserSettingsFlowRequest { + return FrontendAPIApiCreateBrowserSettingsFlowRequest{ ApiService: a, ctx: ctx, } @@ -1647,7 +1647,7 @@ func (a *FrontendApiService) CreateBrowserSettingsFlow(ctx context.Context) Fron * Execute executes the request * @return SettingsFlow */ -func (a *FrontendApiService) CreateBrowserSettingsFlowExecute(r FrontendApiApiCreateBrowserSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserSettingsFlowExecute(r FrontendAPIApiCreateBrowserSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1657,7 +1657,7 @@ func (a *FrontendApiService) CreateBrowserSettingsFlowExecute(r FrontendApiApiCr localVarReturnValue *SettingsFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserSettingsFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserSettingsFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1765,18 +1765,18 @@ func (a *FrontendApiService) CreateBrowserSettingsFlowExecute(r FrontendApiApiCr return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserVerificationFlowRequest struct { +type FrontendAPIApiCreateBrowserVerificationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnTo *string } -func (r FrontendApiApiCreateBrowserVerificationFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserVerificationFlowRequest { +func (r FrontendAPIApiCreateBrowserVerificationFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserVerificationFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { return r.ApiService.CreateBrowserVerificationFlowExecute(r) } @@ -1792,10 +1792,10 @@ This endpoint is NOT INTENDED for API clients and only works with browsers (Chro More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserVerificationFlowRequest + - @return FrontendAPIApiCreateBrowserVerificationFlowRequest */ -func (a *FrontendApiService) CreateBrowserVerificationFlow(ctx context.Context) FrontendApiApiCreateBrowserVerificationFlowRequest { - return FrontendApiApiCreateBrowserVerificationFlowRequest{ +func (a *FrontendAPIService) CreateBrowserVerificationFlow(ctx context.Context) FrontendAPIApiCreateBrowserVerificationFlowRequest { + return FrontendAPIApiCreateBrowserVerificationFlowRequest{ ApiService: a, ctx: ctx, } @@ -1805,7 +1805,7 @@ func (a *FrontendApiService) CreateBrowserVerificationFlow(ctx context.Context) * Execute executes the request * @return VerificationFlow */ -func (a *FrontendApiService) CreateBrowserVerificationFlowExecute(r FrontendApiApiCreateBrowserVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserVerificationFlowExecute(r FrontendAPIApiCreateBrowserVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1815,7 +1815,7 @@ func (a *FrontendApiService) CreateBrowserVerificationFlowExecute(r FrontendApiA localVarReturnValue *VerificationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserVerificationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserVerificationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1890,9 +1890,9 @@ func (a *FrontendApiService) CreateBrowserVerificationFlowExecute(r FrontendApiA return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeLoginFlowRequest struct { +type FrontendAPIApiCreateNativeLoginFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI refresh *bool aal *string xSessionToken *string @@ -1901,32 +1901,32 @@ type FrontendApiApiCreateNativeLoginFlowRequest struct { via *string } -func (r FrontendApiApiCreateNativeLoginFlowRequest) Refresh(refresh bool) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) Refresh(refresh bool) FrontendAPIApiCreateNativeLoginFlowRequest { r.refresh = &refresh return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) Aal(aal string) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) Aal(aal string) FrontendAPIApiCreateNativeLoginFlowRequest { r.aal = &aal return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiCreateNativeLoginFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode bool) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode bool) FrontendAPIApiCreateNativeLoginFlowRequest { r.returnSessionTokenExchangeCode = &returnSessionTokenExchangeCode return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateNativeLoginFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) Via(via string) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) Via(via string) FrontendAPIApiCreateNativeLoginFlowRequest { r.via = &via return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { return r.ApiService.CreateNativeLoginFlowExecute(r) } @@ -1953,10 +1953,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeLoginFlowRequest + - @return FrontendAPIApiCreateNativeLoginFlowRequest */ -func (a *FrontendApiService) CreateNativeLoginFlow(ctx context.Context) FrontendApiApiCreateNativeLoginFlowRequest { - return FrontendApiApiCreateNativeLoginFlowRequest{ +func (a *FrontendAPIService) CreateNativeLoginFlow(ctx context.Context) FrontendAPIApiCreateNativeLoginFlowRequest { + return FrontendAPIApiCreateNativeLoginFlowRequest{ ApiService: a, ctx: ctx, } @@ -1966,7 +1966,7 @@ func (a *FrontendApiService) CreateNativeLoginFlow(ctx context.Context) Frontend * Execute executes the request * @return LoginFlow */ -func (a *FrontendApiService) CreateNativeLoginFlowExecute(r FrontendApiApiCreateNativeLoginFlowRequest) (*LoginFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeLoginFlowExecute(r FrontendAPIApiCreateNativeLoginFlowRequest) (*LoginFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1976,7 +1976,7 @@ func (a *FrontendApiService) CreateNativeLoginFlowExecute(r FrontendApiApiCreate localVarReturnValue *LoginFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeLoginFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeLoginFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2076,12 +2076,12 @@ func (a *FrontendApiService) CreateNativeLoginFlowExecute(r FrontendApiApiCreate return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeRecoveryFlowRequest struct { +type FrontendAPIApiCreateNativeRecoveryFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI } -func (r FrontendApiApiCreateNativeRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { return r.ApiService.CreateNativeRecoveryFlowExecute(r) } @@ -2101,10 +2101,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeRecoveryFlowRequest + - @return FrontendAPIApiCreateNativeRecoveryFlowRequest */ -func (a *FrontendApiService) CreateNativeRecoveryFlow(ctx context.Context) FrontendApiApiCreateNativeRecoveryFlowRequest { - return FrontendApiApiCreateNativeRecoveryFlowRequest{ +func (a *FrontendAPIService) CreateNativeRecoveryFlow(ctx context.Context) FrontendAPIApiCreateNativeRecoveryFlowRequest { + return FrontendAPIApiCreateNativeRecoveryFlowRequest{ ApiService: a, ctx: ctx, } @@ -2114,7 +2114,7 @@ func (a *FrontendApiService) CreateNativeRecoveryFlow(ctx context.Context) Front * Execute executes the request * @return RecoveryFlow */ -func (a *FrontendApiService) CreateNativeRecoveryFlowExecute(r FrontendApiApiCreateNativeRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeRecoveryFlowExecute(r FrontendAPIApiCreateNativeRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2124,7 +2124,7 @@ func (a *FrontendApiService) CreateNativeRecoveryFlowExecute(r FrontendApiApiCre localVarReturnValue *RecoveryFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeRecoveryFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeRecoveryFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2206,23 +2206,23 @@ func (a *FrontendApiService) CreateNativeRecoveryFlowExecute(r FrontendApiApiCre return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeRegistrationFlowRequest struct { +type FrontendAPIApiCreateNativeRegistrationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnSessionTokenExchangeCode *bool returnTo *string } -func (r FrontendApiApiCreateNativeRegistrationFlowRequest) ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode bool) FrontendApiApiCreateNativeRegistrationFlowRequest { +func (r FrontendAPIApiCreateNativeRegistrationFlowRequest) ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode bool) FrontendAPIApiCreateNativeRegistrationFlowRequest { r.returnSessionTokenExchangeCode = &returnSessionTokenExchangeCode return r } -func (r FrontendApiApiCreateNativeRegistrationFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateNativeRegistrationFlowRequest { +func (r FrontendAPIApiCreateNativeRegistrationFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateNativeRegistrationFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateNativeRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { return r.ApiService.CreateNativeRegistrationFlowExecute(r) } @@ -2248,10 +2248,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeRegistrationFlowRequest + - @return FrontendAPIApiCreateNativeRegistrationFlowRequest */ -func (a *FrontendApiService) CreateNativeRegistrationFlow(ctx context.Context) FrontendApiApiCreateNativeRegistrationFlowRequest { - return FrontendApiApiCreateNativeRegistrationFlowRequest{ +func (a *FrontendAPIService) CreateNativeRegistrationFlow(ctx context.Context) FrontendAPIApiCreateNativeRegistrationFlowRequest { + return FrontendAPIApiCreateNativeRegistrationFlowRequest{ ApiService: a, ctx: ctx, } @@ -2261,7 +2261,7 @@ func (a *FrontendApiService) CreateNativeRegistrationFlow(ctx context.Context) F * Execute executes the request * @return RegistrationFlow */ -func (a *FrontendApiService) CreateNativeRegistrationFlowExecute(r FrontendApiApiCreateNativeRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeRegistrationFlowExecute(r FrontendAPIApiCreateNativeRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2271,7 +2271,7 @@ func (a *FrontendApiService) CreateNativeRegistrationFlowExecute(r FrontendApiAp localVarReturnValue *RegistrationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeRegistrationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeRegistrationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2359,18 +2359,18 @@ func (a *FrontendApiService) CreateNativeRegistrationFlowExecute(r FrontendApiAp return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeSettingsFlowRequest struct { +type FrontendAPIApiCreateNativeSettingsFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI xSessionToken *string } -func (r FrontendApiApiCreateNativeSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiCreateNativeSettingsFlowRequest { +func (r FrontendAPIApiCreateNativeSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiCreateNativeSettingsFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiCreateNativeSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { return r.ApiService.CreateNativeSettingsFlowExecute(r) } @@ -2400,10 +2400,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeSettingsFlowRequest + - @return FrontendAPIApiCreateNativeSettingsFlowRequest */ -func (a *FrontendApiService) CreateNativeSettingsFlow(ctx context.Context) FrontendApiApiCreateNativeSettingsFlowRequest { - return FrontendApiApiCreateNativeSettingsFlowRequest{ +func (a *FrontendAPIService) CreateNativeSettingsFlow(ctx context.Context) FrontendAPIApiCreateNativeSettingsFlowRequest { + return FrontendAPIApiCreateNativeSettingsFlowRequest{ ApiService: a, ctx: ctx, } @@ -2413,7 +2413,7 @@ func (a *FrontendApiService) CreateNativeSettingsFlow(ctx context.Context) Front * Execute executes the request * @return SettingsFlow */ -func (a *FrontendApiService) CreateNativeSettingsFlowExecute(r FrontendApiApiCreateNativeSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeSettingsFlowExecute(r FrontendAPIApiCreateNativeSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2423,7 +2423,7 @@ func (a *FrontendApiService) CreateNativeSettingsFlowExecute(r FrontendApiApiCre localVarReturnValue *SettingsFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeSettingsFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeSettingsFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2508,12 +2508,12 @@ func (a *FrontendApiService) CreateNativeSettingsFlowExecute(r FrontendApiApiCre return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeVerificationFlowRequest struct { +type FrontendAPIApiCreateNativeVerificationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI } -func (r FrontendApiApiCreateNativeVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { return r.ApiService.CreateNativeVerificationFlowExecute(r) } @@ -2531,10 +2531,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeVerificationFlowRequest + - @return FrontendAPIApiCreateNativeVerificationFlowRequest */ -func (a *FrontendApiService) CreateNativeVerificationFlow(ctx context.Context) FrontendApiApiCreateNativeVerificationFlowRequest { - return FrontendApiApiCreateNativeVerificationFlowRequest{ +func (a *FrontendAPIService) CreateNativeVerificationFlow(ctx context.Context) FrontendAPIApiCreateNativeVerificationFlowRequest { + return FrontendAPIApiCreateNativeVerificationFlowRequest{ ApiService: a, ctx: ctx, } @@ -2544,7 +2544,7 @@ func (a *FrontendApiService) CreateNativeVerificationFlow(ctx context.Context) F * Execute executes the request * @return VerificationFlow */ -func (a *FrontendApiService) CreateNativeVerificationFlowExecute(r FrontendApiApiCreateNativeVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeVerificationFlowExecute(r FrontendAPIApiCreateNativeVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2554,7 +2554,7 @@ func (a *FrontendApiService) CreateNativeVerificationFlowExecute(r FrontendApiAp localVarReturnValue *VerificationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeVerificationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeVerificationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2636,23 +2636,23 @@ func (a *FrontendApiService) CreateNativeVerificationFlowExecute(r FrontendApiAp return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiDisableMyOtherSessionsRequest struct { +type FrontendAPIApiDisableMyOtherSessionsRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI xSessionToken *string cookie *string } -func (r FrontendApiApiDisableMyOtherSessionsRequest) XSessionToken(xSessionToken string) FrontendApiApiDisableMyOtherSessionsRequest { +func (r FrontendAPIApiDisableMyOtherSessionsRequest) XSessionToken(xSessionToken string) FrontendAPIApiDisableMyOtherSessionsRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiDisableMyOtherSessionsRequest) Cookie(cookie string) FrontendApiApiDisableMyOtherSessionsRequest { +func (r FrontendAPIApiDisableMyOtherSessionsRequest) Cookie(cookie string) FrontendAPIApiDisableMyOtherSessionsRequest { r.cookie = &cookie return r } -func (r FrontendApiApiDisableMyOtherSessionsRequest) Execute() (*DeleteMySessionsCount, *http.Response, error) { +func (r FrontendAPIApiDisableMyOtherSessionsRequest) Execute() (*DeleteMySessionsCount, *http.Response, error) { return r.ApiService.DisableMyOtherSessionsExecute(r) } @@ -2662,10 +2662,10 @@ func (r FrontendApiApiDisableMyOtherSessionsRequest) Execute() (*DeleteMySession Session data are not deleted. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiDisableMyOtherSessionsRequest + - @return FrontendAPIApiDisableMyOtherSessionsRequest */ -func (a *FrontendApiService) DisableMyOtherSessions(ctx context.Context) FrontendApiApiDisableMyOtherSessionsRequest { - return FrontendApiApiDisableMyOtherSessionsRequest{ +func (a *FrontendAPIService) DisableMyOtherSessions(ctx context.Context) FrontendAPIApiDisableMyOtherSessionsRequest { + return FrontendAPIApiDisableMyOtherSessionsRequest{ ApiService: a, ctx: ctx, } @@ -2675,7 +2675,7 @@ func (a *FrontendApiService) DisableMyOtherSessions(ctx context.Context) Fronten * Execute executes the request * @return DeleteMySessionsCount */ -func (a *FrontendApiService) DisableMyOtherSessionsExecute(r FrontendApiApiDisableMyOtherSessionsRequest) (*DeleteMySessionsCount, *http.Response, error) { +func (a *FrontendAPIService) DisableMyOtherSessionsExecute(r FrontendAPIApiDisableMyOtherSessionsRequest) (*DeleteMySessionsCount, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -2685,7 +2685,7 @@ func (a *FrontendApiService) DisableMyOtherSessionsExecute(r FrontendApiApiDisab localVarReturnValue *DeleteMySessionsCount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.DisableMyOtherSessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.DisableMyOtherSessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2783,24 +2783,24 @@ func (a *FrontendApiService) DisableMyOtherSessionsExecute(r FrontendApiApiDisab return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiDisableMySessionRequest struct { +type FrontendAPIApiDisableMySessionRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id string xSessionToken *string cookie *string } -func (r FrontendApiApiDisableMySessionRequest) XSessionToken(xSessionToken string) FrontendApiApiDisableMySessionRequest { +func (r FrontendAPIApiDisableMySessionRequest) XSessionToken(xSessionToken string) FrontendAPIApiDisableMySessionRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiDisableMySessionRequest) Cookie(cookie string) FrontendApiApiDisableMySessionRequest { +func (r FrontendAPIApiDisableMySessionRequest) Cookie(cookie string) FrontendAPIApiDisableMySessionRequest { r.cookie = &cookie return r } -func (r FrontendApiApiDisableMySessionRequest) Execute() (*http.Response, error) { +func (r FrontendAPIApiDisableMySessionRequest) Execute() (*http.Response, error) { return r.ApiService.DisableMySessionExecute(r) } @@ -2811,10 +2811,10 @@ func (r FrontendApiApiDisableMySessionRequest) Execute() (*http.Response, error) Session data are not deleted. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the session's ID. - - @return FrontendApiApiDisableMySessionRequest + - @return FrontendAPIApiDisableMySessionRequest */ -func (a *FrontendApiService) DisableMySession(ctx context.Context, id string) FrontendApiApiDisableMySessionRequest { - return FrontendApiApiDisableMySessionRequest{ +func (a *FrontendAPIService) DisableMySession(ctx context.Context, id string) FrontendAPIApiDisableMySessionRequest { + return FrontendAPIApiDisableMySessionRequest{ ApiService: a, ctx: ctx, id: id, @@ -2824,7 +2824,7 @@ func (a *FrontendApiService) DisableMySession(ctx context.Context, id string) Fr /* * Execute executes the request */ -func (a *FrontendApiService) DisableMySessionExecute(r FrontendApiApiDisableMySessionRequest) (*http.Response, error) { +func (a *FrontendAPIService) DisableMySessionExecute(r FrontendAPIApiDisableMySessionRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -2833,7 +2833,7 @@ func (a *FrontendApiService) DisableMySessionExecute(r FrontendApiApiDisableMySe localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.DisableMySession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.DisableMySession") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2923,33 +2923,33 @@ func (a *FrontendApiService) DisableMySessionExecute(r FrontendApiApiDisableMySe return localVarHTTPResponse, nil } -type FrontendApiApiExchangeSessionTokenRequest struct { +type FrontendAPIApiExchangeSessionTokenRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI initCode *string returnToCode *string } -func (r FrontendApiApiExchangeSessionTokenRequest) InitCode(initCode string) FrontendApiApiExchangeSessionTokenRequest { +func (r FrontendAPIApiExchangeSessionTokenRequest) InitCode(initCode string) FrontendAPIApiExchangeSessionTokenRequest { r.initCode = &initCode return r } -func (r FrontendApiApiExchangeSessionTokenRequest) ReturnToCode(returnToCode string) FrontendApiApiExchangeSessionTokenRequest { +func (r FrontendAPIApiExchangeSessionTokenRequest) ReturnToCode(returnToCode string) FrontendAPIApiExchangeSessionTokenRequest { r.returnToCode = &returnToCode return r } -func (r FrontendApiApiExchangeSessionTokenRequest) Execute() (*SuccessfulNativeLogin, *http.Response, error) { +func (r FrontendAPIApiExchangeSessionTokenRequest) Execute() (*SuccessfulNativeLogin, *http.Response, error) { return r.ApiService.ExchangeSessionTokenExecute(r) } /* * ExchangeSessionToken Exchange Session Token * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiExchangeSessionTokenRequest + * @return FrontendAPIApiExchangeSessionTokenRequest */ -func (a *FrontendApiService) ExchangeSessionToken(ctx context.Context) FrontendApiApiExchangeSessionTokenRequest { - return FrontendApiApiExchangeSessionTokenRequest{ +func (a *FrontendAPIService) ExchangeSessionToken(ctx context.Context) FrontendAPIApiExchangeSessionTokenRequest { + return FrontendAPIApiExchangeSessionTokenRequest{ ApiService: a, ctx: ctx, } @@ -2959,7 +2959,7 @@ func (a *FrontendApiService) ExchangeSessionToken(ctx context.Context) FrontendA * Execute executes the request * @return SuccessfulNativeLogin */ -func (a *FrontendApiService) ExchangeSessionTokenExecute(r FrontendApiApiExchangeSessionTokenRequest) (*SuccessfulNativeLogin, *http.Response, error) { +func (a *FrontendAPIService) ExchangeSessionTokenExecute(r FrontendAPIApiExchangeSessionTokenRequest) (*SuccessfulNativeLogin, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2969,7 +2969,7 @@ func (a *FrontendApiService) ExchangeSessionTokenExecute(r FrontendApiApiExchang localVarReturnValue *SuccessfulNativeLogin ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.ExchangeSessionToken") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.ExchangeSessionToken") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3079,18 +3079,18 @@ func (a *FrontendApiService) ExchangeSessionTokenExecute(r FrontendApiApiExchang return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetFlowErrorRequest struct { +type FrontendAPIApiGetFlowErrorRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string } -func (r FrontendApiApiGetFlowErrorRequest) Id(id string) FrontendApiApiGetFlowErrorRequest { +func (r FrontendAPIApiGetFlowErrorRequest) Id(id string) FrontendAPIApiGetFlowErrorRequest { r.id = &id return r } -func (r FrontendApiApiGetFlowErrorRequest) Execute() (*FlowError, *http.Response, error) { +func (r FrontendAPIApiGetFlowErrorRequest) Execute() (*FlowError, *http.Response, error) { return r.ApiService.GetFlowErrorExecute(r) } @@ -3104,10 +3104,10 @@ This endpoint supports stub values to help you implement the error UI: More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetFlowErrorRequest + - @return FrontendAPIApiGetFlowErrorRequest */ -func (a *FrontendApiService) GetFlowError(ctx context.Context) FrontendApiApiGetFlowErrorRequest { - return FrontendApiApiGetFlowErrorRequest{ +func (a *FrontendAPIService) GetFlowError(ctx context.Context) FrontendAPIApiGetFlowErrorRequest { + return FrontendAPIApiGetFlowErrorRequest{ ApiService: a, ctx: ctx, } @@ -3117,7 +3117,7 @@ func (a *FrontendApiService) GetFlowError(ctx context.Context) FrontendApiApiGet * Execute executes the request * @return FlowError */ -func (a *FrontendApiService) GetFlowErrorExecute(r FrontendApiApiGetFlowErrorRequest) (*FlowError, *http.Response, error) { +func (a *FrontendAPIService) GetFlowErrorExecute(r FrontendAPIApiGetFlowErrorRequest) (*FlowError, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3127,7 +3127,7 @@ func (a *FrontendApiService) GetFlowErrorExecute(r FrontendApiApiGetFlowErrorReq localVarReturnValue *FlowError ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetFlowError") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetFlowError") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3225,23 +3225,23 @@ func (a *FrontendApiService) GetFlowErrorExecute(r FrontendApiApiGetFlowErrorReq return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetLoginFlowRequest struct { +type FrontendAPIApiGetLoginFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string cookie *string } -func (r FrontendApiApiGetLoginFlowRequest) Id(id string) FrontendApiApiGetLoginFlowRequest { +func (r FrontendAPIApiGetLoginFlowRequest) Id(id string) FrontendAPIApiGetLoginFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetLoginFlowRequest) Cookie(cookie string) FrontendApiApiGetLoginFlowRequest { +func (r FrontendAPIApiGetLoginFlowRequest) Cookie(cookie string) FrontendAPIApiGetLoginFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { +func (r FrontendAPIApiGetLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { return r.ApiService.GetLoginFlowExecute(r) } @@ -3271,10 +3271,10 @@ This request may fail due to several reasons. The `error.id` can be one of: More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetLoginFlowRequest + - @return FrontendAPIApiGetLoginFlowRequest */ -func (a *FrontendApiService) GetLoginFlow(ctx context.Context) FrontendApiApiGetLoginFlowRequest { - return FrontendApiApiGetLoginFlowRequest{ +func (a *FrontendAPIService) GetLoginFlow(ctx context.Context) FrontendAPIApiGetLoginFlowRequest { + return FrontendAPIApiGetLoginFlowRequest{ ApiService: a, ctx: ctx, } @@ -3284,7 +3284,7 @@ func (a *FrontendApiService) GetLoginFlow(ctx context.Context) FrontendApiApiGet * Execute executes the request * @return LoginFlow */ -func (a *FrontendApiService) GetLoginFlowExecute(r FrontendApiApiGetLoginFlowRequest) (*LoginFlow, *http.Response, error) { +func (a *FrontendAPIService) GetLoginFlowExecute(r FrontendAPIApiGetLoginFlowRequest) (*LoginFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3294,7 +3294,7 @@ func (a *FrontendApiService) GetLoginFlowExecute(r FrontendApiApiGetLoginFlowReq localVarReturnValue *LoginFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetLoginFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetLoginFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3403,23 +3403,23 @@ func (a *FrontendApiService) GetLoginFlowExecute(r FrontendApiApiGetLoginFlowReq return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetRecoveryFlowRequest struct { +type FrontendAPIApiGetRecoveryFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string cookie *string } -func (r FrontendApiApiGetRecoveryFlowRequest) Id(id string) FrontendApiApiGetRecoveryFlowRequest { +func (r FrontendAPIApiGetRecoveryFlowRequest) Id(id string) FrontendAPIApiGetRecoveryFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetRecoveryFlowRequest) Cookie(cookie string) FrontendApiApiGetRecoveryFlowRequest { +func (r FrontendAPIApiGetRecoveryFlowRequest) Cookie(cookie string) FrontendAPIApiGetRecoveryFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { +func (r FrontendAPIApiGetRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { return r.ApiService.GetRecoveryFlowExecute(r) } @@ -3444,10 +3444,10 @@ res.render('recovery', flow) More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetRecoveryFlowRequest + - @return FrontendAPIApiGetRecoveryFlowRequest */ -func (a *FrontendApiService) GetRecoveryFlow(ctx context.Context) FrontendApiApiGetRecoveryFlowRequest { - return FrontendApiApiGetRecoveryFlowRequest{ +func (a *FrontendAPIService) GetRecoveryFlow(ctx context.Context) FrontendAPIApiGetRecoveryFlowRequest { + return FrontendAPIApiGetRecoveryFlowRequest{ ApiService: a, ctx: ctx, } @@ -3457,7 +3457,7 @@ func (a *FrontendApiService) GetRecoveryFlow(ctx context.Context) FrontendApiApi * Execute executes the request * @return RecoveryFlow */ -func (a *FrontendApiService) GetRecoveryFlowExecute(r FrontendApiApiGetRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { +func (a *FrontendAPIService) GetRecoveryFlowExecute(r FrontendAPIApiGetRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3467,7 +3467,7 @@ func (a *FrontendApiService) GetRecoveryFlowExecute(r FrontendApiApiGetRecoveryF localVarReturnValue *RecoveryFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetRecoveryFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetRecoveryFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3566,23 +3566,23 @@ func (a *FrontendApiService) GetRecoveryFlowExecute(r FrontendApiApiGetRecoveryF return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetRegistrationFlowRequest struct { +type FrontendAPIApiGetRegistrationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string cookie *string } -func (r FrontendApiApiGetRegistrationFlowRequest) Id(id string) FrontendApiApiGetRegistrationFlowRequest { +func (r FrontendAPIApiGetRegistrationFlowRequest) Id(id string) FrontendAPIApiGetRegistrationFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetRegistrationFlowRequest) Cookie(cookie string) FrontendApiApiGetRegistrationFlowRequest { +func (r FrontendAPIApiGetRegistrationFlowRequest) Cookie(cookie string) FrontendAPIApiGetRegistrationFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { +func (r FrontendAPIApiGetRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { return r.ApiService.GetRegistrationFlowExecute(r) } @@ -3612,10 +3612,10 @@ This request may fail due to several reasons. The `error.id` can be one of: More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetRegistrationFlowRequest + - @return FrontendAPIApiGetRegistrationFlowRequest */ -func (a *FrontendApiService) GetRegistrationFlow(ctx context.Context) FrontendApiApiGetRegistrationFlowRequest { - return FrontendApiApiGetRegistrationFlowRequest{ +func (a *FrontendAPIService) GetRegistrationFlow(ctx context.Context) FrontendAPIApiGetRegistrationFlowRequest { + return FrontendAPIApiGetRegistrationFlowRequest{ ApiService: a, ctx: ctx, } @@ -3625,7 +3625,7 @@ func (a *FrontendApiService) GetRegistrationFlow(ctx context.Context) FrontendAp * Execute executes the request * @return RegistrationFlow */ -func (a *FrontendApiService) GetRegistrationFlowExecute(r FrontendApiApiGetRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { +func (a *FrontendAPIService) GetRegistrationFlowExecute(r FrontendAPIApiGetRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3635,7 +3635,7 @@ func (a *FrontendApiService) GetRegistrationFlowExecute(r FrontendApiApiGetRegis localVarReturnValue *RegistrationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetRegistrationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetRegistrationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3744,28 +3744,28 @@ func (a *FrontendApiService) GetRegistrationFlowExecute(r FrontendApiApiGetRegis return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetSettingsFlowRequest struct { +type FrontendAPIApiGetSettingsFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string xSessionToken *string cookie *string } -func (r FrontendApiApiGetSettingsFlowRequest) Id(id string) FrontendApiApiGetSettingsFlowRequest { +func (r FrontendAPIApiGetSettingsFlowRequest) Id(id string) FrontendAPIApiGetSettingsFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiGetSettingsFlowRequest { +func (r FrontendAPIApiGetSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiGetSettingsFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiGetSettingsFlowRequest) Cookie(cookie string) FrontendApiApiGetSettingsFlowRequest { +func (r FrontendAPIApiGetSettingsFlowRequest) Cookie(cookie string) FrontendAPIApiGetSettingsFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { +func (r FrontendAPIApiGetSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { return r.ApiService.GetSettingsFlowExecute(r) } @@ -3792,10 +3792,10 @@ identity logged in instead. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetSettingsFlowRequest + - @return FrontendAPIApiGetSettingsFlowRequest */ -func (a *FrontendApiService) GetSettingsFlow(ctx context.Context) FrontendApiApiGetSettingsFlowRequest { - return FrontendApiApiGetSettingsFlowRequest{ +func (a *FrontendAPIService) GetSettingsFlow(ctx context.Context) FrontendAPIApiGetSettingsFlowRequest { + return FrontendAPIApiGetSettingsFlowRequest{ ApiService: a, ctx: ctx, } @@ -3805,7 +3805,7 @@ func (a *FrontendApiService) GetSettingsFlow(ctx context.Context) FrontendApiApi * Execute executes the request * @return SettingsFlow */ -func (a *FrontendApiService) GetSettingsFlowExecute(r FrontendApiApiGetSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { +func (a *FrontendAPIService) GetSettingsFlowExecute(r FrontendAPIApiGetSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3815,7 +3815,7 @@ func (a *FrontendApiService) GetSettingsFlowExecute(r FrontendApiApiGetSettingsF localVarReturnValue *SettingsFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetSettingsFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetSettingsFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3937,23 +3937,23 @@ func (a *FrontendApiService) GetSettingsFlowExecute(r FrontendApiApiGetSettingsF return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetVerificationFlowRequest struct { +type FrontendAPIApiGetVerificationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string cookie *string } -func (r FrontendApiApiGetVerificationFlowRequest) Id(id string) FrontendApiApiGetVerificationFlowRequest { +func (r FrontendAPIApiGetVerificationFlowRequest) Id(id string) FrontendAPIApiGetVerificationFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetVerificationFlowRequest) Cookie(cookie string) FrontendApiApiGetVerificationFlowRequest { +func (r FrontendAPIApiGetVerificationFlowRequest) Cookie(cookie string) FrontendAPIApiGetVerificationFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { +func (r FrontendAPIApiGetVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { return r.ApiService.GetVerificationFlowExecute(r) } @@ -3978,10 +3978,10 @@ res.render('verification', flow) More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetVerificationFlowRequest + - @return FrontendAPIApiGetVerificationFlowRequest */ -func (a *FrontendApiService) GetVerificationFlow(ctx context.Context) FrontendApiApiGetVerificationFlowRequest { - return FrontendApiApiGetVerificationFlowRequest{ +func (a *FrontendAPIService) GetVerificationFlow(ctx context.Context) FrontendAPIApiGetVerificationFlowRequest { + return FrontendAPIApiGetVerificationFlowRequest{ ApiService: a, ctx: ctx, } @@ -3991,7 +3991,7 @@ func (a *FrontendApiService) GetVerificationFlow(ctx context.Context) FrontendAp * Execute executes the request * @return VerificationFlow */ -func (a *FrontendApiService) GetVerificationFlowExecute(r FrontendApiApiGetVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { +func (a *FrontendAPIService) GetVerificationFlowExecute(r FrontendAPIApiGetVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4001,7 +4001,7 @@ func (a *FrontendApiService) GetVerificationFlowExecute(r FrontendApiApiGetVerif localVarReturnValue *VerificationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetVerificationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetVerificationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4100,12 +4100,12 @@ func (a *FrontendApiService) GetVerificationFlowExecute(r FrontendApiApiGetVerif return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetWebAuthnJavaScriptRequest struct { +type FrontendAPIApiGetWebAuthnJavaScriptRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI } -func (r FrontendApiApiGetWebAuthnJavaScriptRequest) Execute() (string, *http.Response, error) { +func (r FrontendAPIApiGetWebAuthnJavaScriptRequest) Execute() (string, *http.Response, error) { return r.ApiService.GetWebAuthnJavaScriptExecute(r) } @@ -4121,10 +4121,10 @@ If you are building a JavaScript Browser App (e.g. in ReactJS or AngularJS) you More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetWebAuthnJavaScriptRequest + - @return FrontendAPIApiGetWebAuthnJavaScriptRequest */ -func (a *FrontendApiService) GetWebAuthnJavaScript(ctx context.Context) FrontendApiApiGetWebAuthnJavaScriptRequest { - return FrontendApiApiGetWebAuthnJavaScriptRequest{ +func (a *FrontendAPIService) GetWebAuthnJavaScript(ctx context.Context) FrontendAPIApiGetWebAuthnJavaScriptRequest { + return FrontendAPIApiGetWebAuthnJavaScriptRequest{ ApiService: a, ctx: ctx, } @@ -4134,7 +4134,7 @@ func (a *FrontendApiService) GetWebAuthnJavaScript(ctx context.Context) Frontend * Execute executes the request * @return string */ -func (a *FrontendApiService) GetWebAuthnJavaScriptExecute(r FrontendApiApiGetWebAuthnJavaScriptRequest) (string, *http.Response, error) { +func (a *FrontendAPIService) GetWebAuthnJavaScriptExecute(r FrontendAPIApiGetWebAuthnJavaScriptRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4144,7 +4144,7 @@ func (a *FrontendApiService) GetWebAuthnJavaScriptExecute(r FrontendApiApiGetWeb localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetWebAuthnJavaScript") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetWebAuthnJavaScript") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4209,9 +4209,9 @@ func (a *FrontendApiService) GetWebAuthnJavaScriptExecute(r FrontendApiApiGetWeb return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiListMySessionsRequest struct { +type FrontendAPIApiListMySessionsRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI perPage *int64 page *int64 pageSize *int64 @@ -4220,32 +4220,32 @@ type FrontendApiApiListMySessionsRequest struct { cookie *string } -func (r FrontendApiApiListMySessionsRequest) PerPage(perPage int64) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) PerPage(perPage int64) FrontendAPIApiListMySessionsRequest { r.perPage = &perPage return r } -func (r FrontendApiApiListMySessionsRequest) Page(page int64) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) Page(page int64) FrontendAPIApiListMySessionsRequest { r.page = &page return r } -func (r FrontendApiApiListMySessionsRequest) PageSize(pageSize int64) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) PageSize(pageSize int64) FrontendAPIApiListMySessionsRequest { r.pageSize = &pageSize return r } -func (r FrontendApiApiListMySessionsRequest) PageToken(pageToken string) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) PageToken(pageToken string) FrontendAPIApiListMySessionsRequest { r.pageToken = &pageToken return r } -func (r FrontendApiApiListMySessionsRequest) XSessionToken(xSessionToken string) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) XSessionToken(xSessionToken string) FrontendAPIApiListMySessionsRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiListMySessionsRequest) Cookie(cookie string) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) Cookie(cookie string) FrontendAPIApiListMySessionsRequest { r.cookie = &cookie return r } -func (r FrontendApiApiListMySessionsRequest) Execute() ([]Session, *http.Response, error) { +func (r FrontendAPIApiListMySessionsRequest) Execute() ([]Session, *http.Response, error) { return r.ApiService.ListMySessionsExecute(r) } @@ -4255,10 +4255,10 @@ func (r FrontendApiApiListMySessionsRequest) Execute() ([]Session, *http.Respons The current session can be retrieved by calling the `/sessions/whoami` endpoint. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiListMySessionsRequest + - @return FrontendAPIApiListMySessionsRequest */ -func (a *FrontendApiService) ListMySessions(ctx context.Context) FrontendApiApiListMySessionsRequest { - return FrontendApiApiListMySessionsRequest{ +func (a *FrontendAPIService) ListMySessions(ctx context.Context) FrontendAPIApiListMySessionsRequest { + return FrontendAPIApiListMySessionsRequest{ ApiService: a, ctx: ctx, } @@ -4268,7 +4268,7 @@ func (a *FrontendApiService) ListMySessions(ctx context.Context) FrontendApiApiL * Execute executes the request * @return []Session */ -func (a *FrontendApiService) ListMySessionsExecute(r FrontendApiApiListMySessionsRequest) ([]Session, *http.Response, error) { +func (a *FrontendAPIService) ListMySessionsExecute(r FrontendAPIApiListMySessionsRequest) ([]Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4278,7 +4278,7 @@ func (a *FrontendApiService) ListMySessionsExecute(r FrontendApiApiListMySession localVarReturnValue []Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.ListMySessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.ListMySessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4388,18 +4388,18 @@ func (a *FrontendApiService) ListMySessionsExecute(r FrontendApiApiListMySession return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiPerformNativeLogoutRequest struct { +type FrontendAPIApiPerformNativeLogoutRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI performNativeLogoutBody *PerformNativeLogoutBody } -func (r FrontendApiApiPerformNativeLogoutRequest) PerformNativeLogoutBody(performNativeLogoutBody PerformNativeLogoutBody) FrontendApiApiPerformNativeLogoutRequest { +func (r FrontendAPIApiPerformNativeLogoutRequest) PerformNativeLogoutBody(performNativeLogoutBody PerformNativeLogoutBody) FrontendAPIApiPerformNativeLogoutRequest { r.performNativeLogoutBody = &performNativeLogoutBody return r } -func (r FrontendApiApiPerformNativeLogoutRequest) Execute() (*http.Response, error) { +func (r FrontendAPIApiPerformNativeLogoutRequest) Execute() (*http.Response, error) { return r.ApiService.PerformNativeLogoutExecute(r) } @@ -4415,10 +4415,10 @@ If the Ory Session Token is malformed or does not exist a 403 Forbidden response This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiPerformNativeLogoutRequest + - @return FrontendAPIApiPerformNativeLogoutRequest */ -func (a *FrontendApiService) PerformNativeLogout(ctx context.Context) FrontendApiApiPerformNativeLogoutRequest { - return FrontendApiApiPerformNativeLogoutRequest{ +func (a *FrontendAPIService) PerformNativeLogout(ctx context.Context) FrontendAPIApiPerformNativeLogoutRequest { + return FrontendAPIApiPerformNativeLogoutRequest{ ApiService: a, ctx: ctx, } @@ -4427,7 +4427,7 @@ func (a *FrontendApiService) PerformNativeLogout(ctx context.Context) FrontendAp /* * Execute executes the request */ -func (a *FrontendApiService) PerformNativeLogoutExecute(r FrontendApiApiPerformNativeLogoutRequest) (*http.Response, error) { +func (a *FrontendAPIService) PerformNativeLogoutExecute(r FrontendAPIApiPerformNativeLogoutRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -4436,7 +4436,7 @@ func (a *FrontendApiService) PerformNativeLogoutExecute(r FrontendApiApiPerformN localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.PerformNativeLogout") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.PerformNativeLogout") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4514,28 +4514,28 @@ func (a *FrontendApiService) PerformNativeLogoutExecute(r FrontendApiApiPerformN return localVarHTTPResponse, nil } -type FrontendApiApiToSessionRequest struct { +type FrontendAPIApiToSessionRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI xSessionToken *string cookie *string tokenizeAs *string } -func (r FrontendApiApiToSessionRequest) XSessionToken(xSessionToken string) FrontendApiApiToSessionRequest { +func (r FrontendAPIApiToSessionRequest) XSessionToken(xSessionToken string) FrontendAPIApiToSessionRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiToSessionRequest) Cookie(cookie string) FrontendApiApiToSessionRequest { +func (r FrontendAPIApiToSessionRequest) Cookie(cookie string) FrontendAPIApiToSessionRequest { r.cookie = &cookie return r } -func (r FrontendApiApiToSessionRequest) TokenizeAs(tokenizeAs string) FrontendApiApiToSessionRequest { +func (r FrontendAPIApiToSessionRequest) TokenizeAs(tokenizeAs string) FrontendAPIApiToSessionRequest { r.tokenizeAs = &tokenizeAs return r } -func (r FrontendApiApiToSessionRequest) Execute() (*Session, *http.Response, error) { +func (r FrontendAPIApiToSessionRequest) Execute() (*Session, *http.Response, error) { return r.ApiService.ToSessionExecute(r) } @@ -4602,10 +4602,10 @@ As explained above, this request may fail due to several reasons. The `error.id` `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiToSessionRequest + - @return FrontendAPIApiToSessionRequest */ -func (a *FrontendApiService) ToSession(ctx context.Context) FrontendApiApiToSessionRequest { - return FrontendApiApiToSessionRequest{ +func (a *FrontendAPIService) ToSession(ctx context.Context) FrontendAPIApiToSessionRequest { + return FrontendAPIApiToSessionRequest{ ApiService: a, ctx: ctx, } @@ -4615,7 +4615,7 @@ func (a *FrontendApiService) ToSession(ctx context.Context) FrontendApiApiToSess * Execute executes the request * @return Session */ -func (a *FrontendApiService) ToSessionExecute(r FrontendApiApiToSessionRequest) (*Session, *http.Response, error) { +func (a *FrontendAPIService) ToSessionExecute(r FrontendAPIApiToSessionRequest) (*Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4625,7 +4625,7 @@ func (a *FrontendApiService) ToSessionExecute(r FrontendApiApiToSessionRequest) localVarReturnValue *Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.ToSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.ToSession") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4726,33 +4726,33 @@ func (a *FrontendApiService) ToSessionExecute(r FrontendApiApiToSessionRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateLoginFlowRequest struct { +type FrontendAPIApiUpdateLoginFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateLoginFlowBody *UpdateLoginFlowBody xSessionToken *string cookie *string } -func (r FrontendApiApiUpdateLoginFlowRequest) Flow(flow string) FrontendApiApiUpdateLoginFlowRequest { +func (r FrontendAPIApiUpdateLoginFlowRequest) Flow(flow string) FrontendAPIApiUpdateLoginFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateLoginFlowRequest) UpdateLoginFlowBody(updateLoginFlowBody UpdateLoginFlowBody) FrontendApiApiUpdateLoginFlowRequest { +func (r FrontendAPIApiUpdateLoginFlowRequest) UpdateLoginFlowBody(updateLoginFlowBody UpdateLoginFlowBody) FrontendAPIApiUpdateLoginFlowRequest { r.updateLoginFlowBody = &updateLoginFlowBody return r } -func (r FrontendApiApiUpdateLoginFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiUpdateLoginFlowRequest { +func (r FrontendAPIApiUpdateLoginFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiUpdateLoginFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiUpdateLoginFlowRequest) Cookie(cookie string) FrontendApiApiUpdateLoginFlowRequest { +func (r FrontendAPIApiUpdateLoginFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateLoginFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateLoginFlowRequest) Execute() (*SuccessfulNativeLogin, *http.Response, error) { +func (r FrontendAPIApiUpdateLoginFlowRequest) Execute() (*SuccessfulNativeLogin, *http.Response, error) { return r.ApiService.UpdateLoginFlowExecute(r) } @@ -4787,10 +4787,10 @@ Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateLoginFlowRequest + - @return FrontendAPIApiUpdateLoginFlowRequest */ -func (a *FrontendApiService) UpdateLoginFlow(ctx context.Context) FrontendApiApiUpdateLoginFlowRequest { - return FrontendApiApiUpdateLoginFlowRequest{ +func (a *FrontendAPIService) UpdateLoginFlow(ctx context.Context) FrontendAPIApiUpdateLoginFlowRequest { + return FrontendAPIApiUpdateLoginFlowRequest{ ApiService: a, ctx: ctx, } @@ -4800,7 +4800,7 @@ func (a *FrontendApiService) UpdateLoginFlow(ctx context.Context) FrontendApiApi * Execute executes the request * @return SuccessfulNativeLogin */ -func (a *FrontendApiService) UpdateLoginFlowExecute(r FrontendApiApiUpdateLoginFlowRequest) (*SuccessfulNativeLogin, *http.Response, error) { +func (a *FrontendAPIService) UpdateLoginFlowExecute(r FrontendAPIApiUpdateLoginFlowRequest) (*SuccessfulNativeLogin, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -4810,7 +4810,7 @@ func (a *FrontendApiService) UpdateLoginFlowExecute(r FrontendApiApiUpdateLoginF localVarReturnValue *SuccessfulNativeLogin ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateLoginFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateLoginFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4927,28 +4927,28 @@ func (a *FrontendApiService) UpdateLoginFlowExecute(r FrontendApiApiUpdateLoginF return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateLogoutFlowRequest struct { +type FrontendAPIApiUpdateLogoutFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI token *string returnTo *string cookie *string } -func (r FrontendApiApiUpdateLogoutFlowRequest) Token(token string) FrontendApiApiUpdateLogoutFlowRequest { +func (r FrontendAPIApiUpdateLogoutFlowRequest) Token(token string) FrontendAPIApiUpdateLogoutFlowRequest { r.token = &token return r } -func (r FrontendApiApiUpdateLogoutFlowRequest) ReturnTo(returnTo string) FrontendApiApiUpdateLogoutFlowRequest { +func (r FrontendAPIApiUpdateLogoutFlowRequest) ReturnTo(returnTo string) FrontendAPIApiUpdateLogoutFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiUpdateLogoutFlowRequest) Cookie(cookie string) FrontendApiApiUpdateLogoutFlowRequest { +func (r FrontendAPIApiUpdateLogoutFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateLogoutFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateLogoutFlowRequest) Execute() (*http.Response, error) { +func (r FrontendAPIApiUpdateLogoutFlowRequest) Execute() (*http.Response, error) { return r.ApiService.UpdateLogoutFlowExecute(r) } @@ -4968,10 +4968,10 @@ call the `/self-service/logout/api` URL directly with the Ory Session Token. More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateLogoutFlowRequest + - @return FrontendAPIApiUpdateLogoutFlowRequest */ -func (a *FrontendApiService) UpdateLogoutFlow(ctx context.Context) FrontendApiApiUpdateLogoutFlowRequest { - return FrontendApiApiUpdateLogoutFlowRequest{ +func (a *FrontendAPIService) UpdateLogoutFlow(ctx context.Context) FrontendAPIApiUpdateLogoutFlowRequest { + return FrontendAPIApiUpdateLogoutFlowRequest{ ApiService: a, ctx: ctx, } @@ -4980,7 +4980,7 @@ func (a *FrontendApiService) UpdateLogoutFlow(ctx context.Context) FrontendApiAp /* * Execute executes the request */ -func (a *FrontendApiService) UpdateLogoutFlowExecute(r FrontendApiApiUpdateLogoutFlowRequest) (*http.Response, error) { +func (a *FrontendAPIService) UpdateLogoutFlowExecute(r FrontendAPIApiUpdateLogoutFlowRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4989,7 +4989,7 @@ func (a *FrontendApiService) UpdateLogoutFlowExecute(r FrontendApiApiUpdateLogou localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateLogoutFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateLogoutFlow") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5061,33 +5061,33 @@ func (a *FrontendApiService) UpdateLogoutFlowExecute(r FrontendApiApiUpdateLogou return localVarHTTPResponse, nil } -type FrontendApiApiUpdateRecoveryFlowRequest struct { +type FrontendAPIApiUpdateRecoveryFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateRecoveryFlowBody *UpdateRecoveryFlowBody token *string cookie *string } -func (r FrontendApiApiUpdateRecoveryFlowRequest) Flow(flow string) FrontendApiApiUpdateRecoveryFlowRequest { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) Flow(flow string) FrontendAPIApiUpdateRecoveryFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateRecoveryFlowRequest) UpdateRecoveryFlowBody(updateRecoveryFlowBody UpdateRecoveryFlowBody) FrontendApiApiUpdateRecoveryFlowRequest { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) UpdateRecoveryFlowBody(updateRecoveryFlowBody UpdateRecoveryFlowBody) FrontendAPIApiUpdateRecoveryFlowRequest { r.updateRecoveryFlowBody = &updateRecoveryFlowBody return r } -func (r FrontendApiApiUpdateRecoveryFlowRequest) Token(token string) FrontendApiApiUpdateRecoveryFlowRequest { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) Token(token string) FrontendAPIApiUpdateRecoveryFlowRequest { r.token = &token return r } -func (r FrontendApiApiUpdateRecoveryFlowRequest) Cookie(cookie string) FrontendApiApiUpdateRecoveryFlowRequest { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateRecoveryFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { return r.ApiService.UpdateRecoveryFlowExecute(r) } @@ -5111,10 +5111,10 @@ a new Recovery Flow ID which contains an error message that the recovery link wa More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateRecoveryFlowRequest + - @return FrontendAPIApiUpdateRecoveryFlowRequest */ -func (a *FrontendApiService) UpdateRecoveryFlow(ctx context.Context) FrontendApiApiUpdateRecoveryFlowRequest { - return FrontendApiApiUpdateRecoveryFlowRequest{ +func (a *FrontendAPIService) UpdateRecoveryFlow(ctx context.Context) FrontendAPIApiUpdateRecoveryFlowRequest { + return FrontendAPIApiUpdateRecoveryFlowRequest{ ApiService: a, ctx: ctx, } @@ -5124,7 +5124,7 @@ func (a *FrontendApiService) UpdateRecoveryFlow(ctx context.Context) FrontendApi * Execute executes the request * @return RecoveryFlow */ -func (a *FrontendApiService) UpdateRecoveryFlowExecute(r FrontendApiApiUpdateRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { +func (a *FrontendAPIService) UpdateRecoveryFlowExecute(r FrontendAPIApiUpdateRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -5134,7 +5134,7 @@ func (a *FrontendApiService) UpdateRecoveryFlowExecute(r FrontendApiApiUpdateRec localVarReturnValue *RecoveryFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateRecoveryFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateRecoveryFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5251,28 +5251,28 @@ func (a *FrontendApiService) UpdateRecoveryFlowExecute(r FrontendApiApiUpdateRec return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateRegistrationFlowRequest struct { +type FrontendAPIApiUpdateRegistrationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateRegistrationFlowBody *UpdateRegistrationFlowBody cookie *string } -func (r FrontendApiApiUpdateRegistrationFlowRequest) Flow(flow string) FrontendApiApiUpdateRegistrationFlowRequest { +func (r FrontendAPIApiUpdateRegistrationFlowRequest) Flow(flow string) FrontendAPIApiUpdateRegistrationFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateRegistrationFlowRequest) UpdateRegistrationFlowBody(updateRegistrationFlowBody UpdateRegistrationFlowBody) FrontendApiApiUpdateRegistrationFlowRequest { +func (r FrontendAPIApiUpdateRegistrationFlowRequest) UpdateRegistrationFlowBody(updateRegistrationFlowBody UpdateRegistrationFlowBody) FrontendAPIApiUpdateRegistrationFlowRequest { r.updateRegistrationFlowBody = &updateRegistrationFlowBody return r } -func (r FrontendApiApiUpdateRegistrationFlowRequest) Cookie(cookie string) FrontendApiApiUpdateRegistrationFlowRequest { +func (r FrontendAPIApiUpdateRegistrationFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateRegistrationFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateRegistrationFlowRequest) Execute() (*SuccessfulNativeRegistration, *http.Response, error) { +func (r FrontendAPIApiUpdateRegistrationFlowRequest) Execute() (*SuccessfulNativeRegistration, *http.Response, error) { return r.ApiService.UpdateRegistrationFlowExecute(r) } @@ -5308,10 +5308,10 @@ Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateRegistrationFlowRequest + - @return FrontendAPIApiUpdateRegistrationFlowRequest */ -func (a *FrontendApiService) UpdateRegistrationFlow(ctx context.Context) FrontendApiApiUpdateRegistrationFlowRequest { - return FrontendApiApiUpdateRegistrationFlowRequest{ +func (a *FrontendAPIService) UpdateRegistrationFlow(ctx context.Context) FrontendAPIApiUpdateRegistrationFlowRequest { + return FrontendAPIApiUpdateRegistrationFlowRequest{ ApiService: a, ctx: ctx, } @@ -5321,7 +5321,7 @@ func (a *FrontendApiService) UpdateRegistrationFlow(ctx context.Context) Fronten * Execute executes the request * @return SuccessfulNativeRegistration */ -func (a *FrontendApiService) UpdateRegistrationFlowExecute(r FrontendApiApiUpdateRegistrationFlowRequest) (*SuccessfulNativeRegistration, *http.Response, error) { +func (a *FrontendAPIService) UpdateRegistrationFlowExecute(r FrontendAPIApiUpdateRegistrationFlowRequest) (*SuccessfulNativeRegistration, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -5331,7 +5331,7 @@ func (a *FrontendApiService) UpdateRegistrationFlowExecute(r FrontendApiApiUpdat localVarReturnValue *SuccessfulNativeRegistration ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateRegistrationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateRegistrationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5445,33 +5445,33 @@ func (a *FrontendApiService) UpdateRegistrationFlowExecute(r FrontendApiApiUpdat return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateSettingsFlowRequest struct { +type FrontendAPIApiUpdateSettingsFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateSettingsFlowBody *UpdateSettingsFlowBody xSessionToken *string cookie *string } -func (r FrontendApiApiUpdateSettingsFlowRequest) Flow(flow string) FrontendApiApiUpdateSettingsFlowRequest { +func (r FrontendAPIApiUpdateSettingsFlowRequest) Flow(flow string) FrontendAPIApiUpdateSettingsFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateSettingsFlowRequest) UpdateSettingsFlowBody(updateSettingsFlowBody UpdateSettingsFlowBody) FrontendApiApiUpdateSettingsFlowRequest { +func (r FrontendAPIApiUpdateSettingsFlowRequest) UpdateSettingsFlowBody(updateSettingsFlowBody UpdateSettingsFlowBody) FrontendAPIApiUpdateSettingsFlowRequest { r.updateSettingsFlowBody = &updateSettingsFlowBody return r } -func (r FrontendApiApiUpdateSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiUpdateSettingsFlowRequest { +func (r FrontendAPIApiUpdateSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiUpdateSettingsFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiUpdateSettingsFlowRequest) Cookie(cookie string) FrontendApiApiUpdateSettingsFlowRequest { +func (r FrontendAPIApiUpdateSettingsFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateSettingsFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { +func (r FrontendAPIApiUpdateSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { return r.ApiService.UpdateSettingsFlowExecute(r) } @@ -5522,10 +5522,10 @@ Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateSettingsFlowRequest + - @return FrontendAPIApiUpdateSettingsFlowRequest */ -func (a *FrontendApiService) UpdateSettingsFlow(ctx context.Context) FrontendApiApiUpdateSettingsFlowRequest { - return FrontendApiApiUpdateSettingsFlowRequest{ +func (a *FrontendAPIService) UpdateSettingsFlow(ctx context.Context) FrontendAPIApiUpdateSettingsFlowRequest { + return FrontendAPIApiUpdateSettingsFlowRequest{ ApiService: a, ctx: ctx, } @@ -5535,7 +5535,7 @@ func (a *FrontendApiService) UpdateSettingsFlow(ctx context.Context) FrontendApi * Execute executes the request * @return SettingsFlow */ -func (a *FrontendApiService) UpdateSettingsFlowExecute(r FrontendApiApiUpdateSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { +func (a *FrontendAPIService) UpdateSettingsFlowExecute(r FrontendAPIApiUpdateSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -5545,7 +5545,7 @@ func (a *FrontendApiService) UpdateSettingsFlowExecute(r FrontendApiApiUpdateSet localVarReturnValue *SettingsFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateSettingsFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateSettingsFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5682,33 +5682,33 @@ func (a *FrontendApiService) UpdateSettingsFlowExecute(r FrontendApiApiUpdateSet return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateVerificationFlowRequest struct { +type FrontendAPIApiUpdateVerificationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateVerificationFlowBody *UpdateVerificationFlowBody token *string cookie *string } -func (r FrontendApiApiUpdateVerificationFlowRequest) Flow(flow string) FrontendApiApiUpdateVerificationFlowRequest { +func (r FrontendAPIApiUpdateVerificationFlowRequest) Flow(flow string) FrontendAPIApiUpdateVerificationFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateVerificationFlowRequest) UpdateVerificationFlowBody(updateVerificationFlowBody UpdateVerificationFlowBody) FrontendApiApiUpdateVerificationFlowRequest { +func (r FrontendAPIApiUpdateVerificationFlowRequest) UpdateVerificationFlowBody(updateVerificationFlowBody UpdateVerificationFlowBody) FrontendAPIApiUpdateVerificationFlowRequest { r.updateVerificationFlowBody = &updateVerificationFlowBody return r } -func (r FrontendApiApiUpdateVerificationFlowRequest) Token(token string) FrontendApiApiUpdateVerificationFlowRequest { +func (r FrontendAPIApiUpdateVerificationFlowRequest) Token(token string) FrontendAPIApiUpdateVerificationFlowRequest { r.token = &token return r } -func (r FrontendApiApiUpdateVerificationFlowRequest) Cookie(cookie string) FrontendApiApiUpdateVerificationFlowRequest { +func (r FrontendAPIApiUpdateVerificationFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateVerificationFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { +func (r FrontendAPIApiUpdateVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { return r.ApiService.UpdateVerificationFlowExecute(r) } @@ -5732,10 +5732,10 @@ a new Verification Flow ID which contains an error message that the verification More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateVerificationFlowRequest + - @return FrontendAPIApiUpdateVerificationFlowRequest */ -func (a *FrontendApiService) UpdateVerificationFlow(ctx context.Context) FrontendApiApiUpdateVerificationFlowRequest { - return FrontendApiApiUpdateVerificationFlowRequest{ +func (a *FrontendAPIService) UpdateVerificationFlow(ctx context.Context) FrontendAPIApiUpdateVerificationFlowRequest { + return FrontendAPIApiUpdateVerificationFlowRequest{ ApiService: a, ctx: ctx, } @@ -5745,7 +5745,7 @@ func (a *FrontendApiService) UpdateVerificationFlow(ctx context.Context) Fronten * Execute executes the request * @return VerificationFlow */ -func (a *FrontendApiService) UpdateVerificationFlowExecute(r FrontendApiApiUpdateVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { +func (a *FrontendAPIService) UpdateVerificationFlowExecute(r FrontendAPIApiUpdateVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -5755,7 +5755,7 @@ func (a *FrontendApiService) UpdateVerificationFlowExecute(r FrontendApiApiUpdat localVarReturnValue *VerificationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateVerificationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateVerificationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/internal/client-go/api_identity.go b/internal/client-go/api_identity.go index b48819525a13..47c2eb6cbfc4 100644 --- a/internal/client-go/api_identity.go +++ b/internal/client-go/api_identity.go @@ -26,7 +26,7 @@ var ( _ context.Context ) -type IdentityApi interface { +type IdentityAPI interface { /* * BatchPatchIdentities Create multiple identities @@ -36,15 +36,15 @@ type IdentityApi interface { credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities) for instance passwords, social sign in configurations or multifactor methods. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiBatchPatchIdentitiesRequest + * @return IdentityAPIApiBatchPatchIdentitiesRequest */ - BatchPatchIdentities(ctx context.Context) IdentityApiApiBatchPatchIdentitiesRequest + BatchPatchIdentities(ctx context.Context) IdentityAPIApiBatchPatchIdentitiesRequest /* * BatchPatchIdentitiesExecute executes the request * @return BatchPatchIdentitiesResponse */ - BatchPatchIdentitiesExecute(r IdentityApiApiBatchPatchIdentitiesRequest) (*BatchPatchIdentitiesResponse, *http.Response, error) + BatchPatchIdentitiesExecute(r IdentityAPIApiBatchPatchIdentitiesRequest) (*BatchPatchIdentitiesResponse, *http.Response, error) /* * CreateIdentity Create an Identity @@ -52,45 +52,45 @@ type IdentityApi interface { [import credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities) for instance passwords, social sign in configurations or multifactor methods. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiCreateIdentityRequest + * @return IdentityAPIApiCreateIdentityRequest */ - CreateIdentity(ctx context.Context) IdentityApiApiCreateIdentityRequest + CreateIdentity(ctx context.Context) IdentityAPIApiCreateIdentityRequest /* * CreateIdentityExecute executes the request * @return Identity */ - CreateIdentityExecute(r IdentityApiApiCreateIdentityRequest) (*Identity, *http.Response, error) + CreateIdentityExecute(r IdentityAPIApiCreateIdentityRequest) (*Identity, *http.Response, error) /* * CreateRecoveryCodeForIdentity Create a Recovery Code * This endpoint creates a recovery code which should be given to the user in order for them to recover (or activate) their account. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiCreateRecoveryCodeForIdentityRequest + * @return IdentityAPIApiCreateRecoveryCodeForIdentityRequest */ - CreateRecoveryCodeForIdentity(ctx context.Context) IdentityApiApiCreateRecoveryCodeForIdentityRequest + CreateRecoveryCodeForIdentity(ctx context.Context) IdentityAPIApiCreateRecoveryCodeForIdentityRequest /* * CreateRecoveryCodeForIdentityExecute executes the request * @return RecoveryCodeForIdentity */ - CreateRecoveryCodeForIdentityExecute(r IdentityApiApiCreateRecoveryCodeForIdentityRequest) (*RecoveryCodeForIdentity, *http.Response, error) + CreateRecoveryCodeForIdentityExecute(r IdentityAPIApiCreateRecoveryCodeForIdentityRequest) (*RecoveryCodeForIdentity, *http.Response, error) /* * CreateRecoveryLinkForIdentity Create a Recovery Link * This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiCreateRecoveryLinkForIdentityRequest + * @return IdentityAPIApiCreateRecoveryLinkForIdentityRequest */ - CreateRecoveryLinkForIdentity(ctx context.Context) IdentityApiApiCreateRecoveryLinkForIdentityRequest + CreateRecoveryLinkForIdentity(ctx context.Context) IdentityAPIApiCreateRecoveryLinkForIdentityRequest /* * CreateRecoveryLinkForIdentityExecute executes the request * @return RecoveryLinkForIdentity */ - CreateRecoveryLinkForIdentityExecute(r IdentityApiApiCreateRecoveryLinkForIdentityRequest) (*RecoveryLinkForIdentity, *http.Response, error) + CreateRecoveryLinkForIdentityExecute(r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) (*RecoveryLinkForIdentity, *http.Response, error) /* * DeleteIdentity Delete an Identity @@ -99,14 +99,14 @@ type IdentityApi interface { assumed that is has been deleted already. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiDeleteIdentityRequest + * @return IdentityAPIApiDeleteIdentityRequest */ - DeleteIdentity(ctx context.Context, id string) IdentityApiApiDeleteIdentityRequest + DeleteIdentity(ctx context.Context, id string) IdentityAPIApiDeleteIdentityRequest /* * DeleteIdentityExecute executes the request */ - DeleteIdentityExecute(r IdentityApiApiDeleteIdentityRequest) (*http.Response, error) + DeleteIdentityExecute(r IdentityAPIApiDeleteIdentityRequest) (*http.Response, error) /* * DeleteIdentityCredentials Delete a credential for a specific identity @@ -115,42 +115,42 @@ type IdentityApi interface { * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. * @param type_ Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode - * @return IdentityApiApiDeleteIdentityCredentialsRequest + * @return IdentityAPIApiDeleteIdentityCredentialsRequest */ - DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityApiApiDeleteIdentityCredentialsRequest + DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityAPIApiDeleteIdentityCredentialsRequest /* * DeleteIdentityCredentialsExecute executes the request */ - DeleteIdentityCredentialsExecute(r IdentityApiApiDeleteIdentityCredentialsRequest) (*http.Response, error) + DeleteIdentityCredentialsExecute(r IdentityAPIApiDeleteIdentityCredentialsRequest) (*http.Response, error) /* * DeleteIdentitySessions Delete & Invalidate an Identity's Sessions * Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiDeleteIdentitySessionsRequest + * @return IdentityAPIApiDeleteIdentitySessionsRequest */ - DeleteIdentitySessions(ctx context.Context, id string) IdentityApiApiDeleteIdentitySessionsRequest + DeleteIdentitySessions(ctx context.Context, id string) IdentityAPIApiDeleteIdentitySessionsRequest /* * DeleteIdentitySessionsExecute executes the request */ - DeleteIdentitySessionsExecute(r IdentityApiApiDeleteIdentitySessionsRequest) (*http.Response, error) + DeleteIdentitySessionsExecute(r IdentityAPIApiDeleteIdentitySessionsRequest) (*http.Response, error) /* * DisableSession Deactivate a Session * Calling this endpoint deactivates the specified session. Session data is not deleted. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return IdentityApiApiDisableSessionRequest + * @return IdentityAPIApiDisableSessionRequest */ - DisableSession(ctx context.Context, id string) IdentityApiApiDisableSessionRequest + DisableSession(ctx context.Context, id string) IdentityAPIApiDisableSessionRequest /* * DisableSessionExecute executes the request */ - DisableSessionExecute(r IdentityApiApiDisableSessionRequest) (*http.Response, error) + DisableSessionExecute(r IdentityAPIApiDisableSessionRequest) (*http.Response, error) /* * ExtendSession Extend a Session @@ -167,15 +167,15 @@ type IdentityApi interface { Retrieve the session ID from the `/sessions/whoami` endpoint / `toSession` SDK method. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return IdentityApiApiExtendSessionRequest + * @return IdentityAPIApiExtendSessionRequest */ - ExtendSession(ctx context.Context, id string) IdentityApiApiExtendSessionRequest + ExtendSession(ctx context.Context, id string) IdentityAPIApiExtendSessionRequest /* * ExtendSessionExecute executes the request * @return Session */ - ExtendSessionExecute(r IdentityApiApiExtendSessionRequest) (*Session, *http.Response, error) + ExtendSessionExecute(r IdentityAPIApiExtendSessionRequest) (*Session, *http.Response, error) /* * GetIdentity Get an Identity @@ -183,30 +183,30 @@ type IdentityApi interface { include credentials (e.g. social sign in connections) in the response by using the `include_credential` query parameter. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of identity you want to get - * @return IdentityApiApiGetIdentityRequest + * @return IdentityAPIApiGetIdentityRequest */ - GetIdentity(ctx context.Context, id string) IdentityApiApiGetIdentityRequest + GetIdentity(ctx context.Context, id string) IdentityAPIApiGetIdentityRequest /* * GetIdentityExecute executes the request * @return Identity */ - GetIdentityExecute(r IdentityApiApiGetIdentityRequest) (*Identity, *http.Response, error) + GetIdentityExecute(r IdentityAPIApiGetIdentityRequest) (*Identity, *http.Response, error) /* * GetIdentitySchema Get Identity JSON Schema * Return a specific identity schema. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of schema you want to get - * @return IdentityApiApiGetIdentitySchemaRequest + * @return IdentityAPIApiGetIdentitySchemaRequest */ - GetIdentitySchema(ctx context.Context, id string) IdentityApiApiGetIdentitySchemaRequest + GetIdentitySchema(ctx context.Context, id string) IdentityAPIApiGetIdentitySchemaRequest /* * GetIdentitySchemaExecute executes the request * @return map[string]interface{} */ - GetIdentitySchemaExecute(r IdentityApiApiGetIdentitySchemaRequest) (map[string]interface{}, *http.Response, error) + GetIdentitySchemaExecute(r IdentityAPIApiGetIdentitySchemaRequest) (map[string]interface{}, *http.Response, error) /* * GetSession Get Session @@ -215,72 +215,72 @@ type IdentityApi interface { Getting a session object with all specified expandables that exist in an administrative context. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return IdentityApiApiGetSessionRequest + * @return IdentityAPIApiGetSessionRequest */ - GetSession(ctx context.Context, id string) IdentityApiApiGetSessionRequest + GetSession(ctx context.Context, id string) IdentityAPIApiGetSessionRequest /* * GetSessionExecute executes the request * @return Session */ - GetSessionExecute(r IdentityApiApiGetSessionRequest) (*Session, *http.Response, error) + GetSessionExecute(r IdentityAPIApiGetSessionRequest) (*Session, *http.Response, error) /* * ListIdentities List Identities * Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListIdentitiesRequest + * @return IdentityAPIApiListIdentitiesRequest */ - ListIdentities(ctx context.Context) IdentityApiApiListIdentitiesRequest + ListIdentities(ctx context.Context) IdentityAPIApiListIdentitiesRequest /* * ListIdentitiesExecute executes the request * @return []Identity */ - ListIdentitiesExecute(r IdentityApiApiListIdentitiesRequest) ([]Identity, *http.Response, error) + ListIdentitiesExecute(r IdentityAPIApiListIdentitiesRequest) ([]Identity, *http.Response, error) /* * ListIdentitySchemas Get all Identity Schemas * Returns a list of all identity schemas currently in use. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListIdentitySchemasRequest + * @return IdentityAPIApiListIdentitySchemasRequest */ - ListIdentitySchemas(ctx context.Context) IdentityApiApiListIdentitySchemasRequest + ListIdentitySchemas(ctx context.Context) IdentityAPIApiListIdentitySchemasRequest /* * ListIdentitySchemasExecute executes the request * @return []IdentitySchemaContainer */ - ListIdentitySchemasExecute(r IdentityApiApiListIdentitySchemasRequest) ([]IdentitySchemaContainer, *http.Response, error) + ListIdentitySchemasExecute(r IdentityAPIApiListIdentitySchemasRequest) ([]IdentitySchemaContainer, *http.Response, error) /* * ListIdentitySessions List an Identity's Sessions * This endpoint returns all sessions that belong to the given Identity. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiListIdentitySessionsRequest + * @return IdentityAPIApiListIdentitySessionsRequest */ - ListIdentitySessions(ctx context.Context, id string) IdentityApiApiListIdentitySessionsRequest + ListIdentitySessions(ctx context.Context, id string) IdentityAPIApiListIdentitySessionsRequest /* * ListIdentitySessionsExecute executes the request * @return []Session */ - ListIdentitySessionsExecute(r IdentityApiApiListIdentitySessionsRequest) ([]Session, *http.Response, error) + ListIdentitySessionsExecute(r IdentityAPIApiListIdentitySessionsRequest) ([]Session, *http.Response, error) /* * ListSessions List All Sessions * Listing all sessions that exist. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListSessionsRequest + * @return IdentityAPIApiListSessionsRequest */ - ListSessions(ctx context.Context) IdentityApiApiListSessionsRequest + ListSessions(ctx context.Context) IdentityAPIApiListSessionsRequest /* * ListSessionsExecute executes the request * @return []Session */ - ListSessionsExecute(r IdentityApiApiListSessionsRequest) ([]Session, *http.Response, error) + ListSessionsExecute(r IdentityAPIApiListSessionsRequest) ([]Session, *http.Response, error) /* * PatchIdentity Patch an Identity @@ -288,15 +288,15 @@ type IdentityApi interface { The fields `id`, `stateChangedAt` and `credentials` can not be updated using this method. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of identity you want to update - * @return IdentityApiApiPatchIdentityRequest + * @return IdentityAPIApiPatchIdentityRequest */ - PatchIdentity(ctx context.Context, id string) IdentityApiApiPatchIdentityRequest + PatchIdentity(ctx context.Context, id string) IdentityAPIApiPatchIdentityRequest /* * PatchIdentityExecute executes the request * @return Identity */ - PatchIdentityExecute(r IdentityApiApiPatchIdentityRequest) (*Identity, *http.Response, error) + PatchIdentityExecute(r IdentityAPIApiPatchIdentityRequest) (*Identity, *http.Response, error) /* * UpdateIdentity Update an Identity @@ -304,32 +304,32 @@ type IdentityApi interface { payload (except credentials) is expected. It is possible to update the identity's credentials as well. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of identity you want to update - * @return IdentityApiApiUpdateIdentityRequest + * @return IdentityAPIApiUpdateIdentityRequest */ - UpdateIdentity(ctx context.Context, id string) IdentityApiApiUpdateIdentityRequest + UpdateIdentity(ctx context.Context, id string) IdentityAPIApiUpdateIdentityRequest /* * UpdateIdentityExecute executes the request * @return Identity */ - UpdateIdentityExecute(r IdentityApiApiUpdateIdentityRequest) (*Identity, *http.Response, error) + UpdateIdentityExecute(r IdentityAPIApiUpdateIdentityRequest) (*Identity, *http.Response, error) } -// IdentityApiService IdentityApi service -type IdentityApiService service +// IdentityAPIService IdentityAPI service +type IdentityAPIService service -type IdentityApiApiBatchPatchIdentitiesRequest struct { +type IdentityAPIApiBatchPatchIdentitiesRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI patchIdentitiesBody *PatchIdentitiesBody } -func (r IdentityApiApiBatchPatchIdentitiesRequest) PatchIdentitiesBody(patchIdentitiesBody PatchIdentitiesBody) IdentityApiApiBatchPatchIdentitiesRequest { +func (r IdentityAPIApiBatchPatchIdentitiesRequest) PatchIdentitiesBody(patchIdentitiesBody PatchIdentitiesBody) IdentityAPIApiBatchPatchIdentitiesRequest { r.patchIdentitiesBody = &patchIdentitiesBody return r } -func (r IdentityApiApiBatchPatchIdentitiesRequest) Execute() (*BatchPatchIdentitiesResponse, *http.Response, error) { +func (r IdentityAPIApiBatchPatchIdentitiesRequest) Execute() (*BatchPatchIdentitiesResponse, *http.Response, error) { return r.ApiService.BatchPatchIdentitiesExecute(r) } @@ -342,10 +342,10 @@ This endpoint can also be used to [import credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities) for instance passwords, social sign in configurations or multifactor methods. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return IdentityApiApiBatchPatchIdentitiesRequest + - @return IdentityAPIApiBatchPatchIdentitiesRequest */ -func (a *IdentityApiService) BatchPatchIdentities(ctx context.Context) IdentityApiApiBatchPatchIdentitiesRequest { - return IdentityApiApiBatchPatchIdentitiesRequest{ +func (a *IdentityAPIService) BatchPatchIdentities(ctx context.Context) IdentityAPIApiBatchPatchIdentitiesRequest { + return IdentityAPIApiBatchPatchIdentitiesRequest{ ApiService: a, ctx: ctx, } @@ -355,7 +355,7 @@ func (a *IdentityApiService) BatchPatchIdentities(ctx context.Context) IdentityA * Execute executes the request * @return BatchPatchIdentitiesResponse */ -func (a *IdentityApiService) BatchPatchIdentitiesExecute(r IdentityApiApiBatchPatchIdentitiesRequest) (*BatchPatchIdentitiesResponse, *http.Response, error) { +func (a *IdentityAPIService) BatchPatchIdentitiesExecute(r IdentityAPIApiBatchPatchIdentitiesRequest) (*BatchPatchIdentitiesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} @@ -365,7 +365,7 @@ func (a *IdentityApiService) BatchPatchIdentitiesExecute(r IdentityApiApiBatchPa localVarReturnValue *BatchPatchIdentitiesResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.BatchPatchIdentities") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.BatchPatchIdentities") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -473,18 +473,18 @@ func (a *IdentityApiService) BatchPatchIdentitiesExecute(r IdentityApiApiBatchPa return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiCreateIdentityRequest struct { +type IdentityAPIApiCreateIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI createIdentityBody *CreateIdentityBody } -func (r IdentityApiApiCreateIdentityRequest) CreateIdentityBody(createIdentityBody CreateIdentityBody) IdentityApiApiCreateIdentityRequest { +func (r IdentityAPIApiCreateIdentityRequest) CreateIdentityBody(createIdentityBody CreateIdentityBody) IdentityAPIApiCreateIdentityRequest { r.createIdentityBody = &createIdentityBody return r } -func (r IdentityApiApiCreateIdentityRequest) Execute() (*Identity, *http.Response, error) { +func (r IdentityAPIApiCreateIdentityRequest) Execute() (*Identity, *http.Response, error) { return r.ApiService.CreateIdentityExecute(r) } @@ -495,10 +495,10 @@ func (r IdentityApiApiCreateIdentityRequest) Execute() (*Identity, *http.Respons [import credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities) for instance passwords, social sign in configurations or multifactor methods. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return IdentityApiApiCreateIdentityRequest + - @return IdentityAPIApiCreateIdentityRequest */ -func (a *IdentityApiService) CreateIdentity(ctx context.Context) IdentityApiApiCreateIdentityRequest { - return IdentityApiApiCreateIdentityRequest{ +func (a *IdentityAPIService) CreateIdentity(ctx context.Context) IdentityAPIApiCreateIdentityRequest { + return IdentityAPIApiCreateIdentityRequest{ ApiService: a, ctx: ctx, } @@ -508,7 +508,7 @@ func (a *IdentityApiService) CreateIdentity(ctx context.Context) IdentityApiApiC * Execute executes the request * @return Identity */ -func (a *IdentityApiService) CreateIdentityExecute(r IdentityApiApiCreateIdentityRequest) (*Identity, *http.Response, error) { +func (a *IdentityAPIService) CreateIdentityExecute(r IdentityAPIApiCreateIdentityRequest) (*Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -518,7 +518,7 @@ func (a *IdentityApiService) CreateIdentityExecute(r IdentityApiApiCreateIdentit localVarReturnValue *Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.CreateIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.CreateIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -626,18 +626,18 @@ func (a *IdentityApiService) CreateIdentityExecute(r IdentityApiApiCreateIdentit return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiCreateRecoveryCodeForIdentityRequest struct { +type IdentityAPIApiCreateRecoveryCodeForIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI createRecoveryCodeForIdentityBody *CreateRecoveryCodeForIdentityBody } -func (r IdentityApiApiCreateRecoveryCodeForIdentityRequest) CreateRecoveryCodeForIdentityBody(createRecoveryCodeForIdentityBody CreateRecoveryCodeForIdentityBody) IdentityApiApiCreateRecoveryCodeForIdentityRequest { +func (r IdentityAPIApiCreateRecoveryCodeForIdentityRequest) CreateRecoveryCodeForIdentityBody(createRecoveryCodeForIdentityBody CreateRecoveryCodeForIdentityBody) IdentityAPIApiCreateRecoveryCodeForIdentityRequest { r.createRecoveryCodeForIdentityBody = &createRecoveryCodeForIdentityBody return r } -func (r IdentityApiApiCreateRecoveryCodeForIdentityRequest) Execute() (*RecoveryCodeForIdentity, *http.Response, error) { +func (r IdentityAPIApiCreateRecoveryCodeForIdentityRequest) Execute() (*RecoveryCodeForIdentity, *http.Response, error) { return r.ApiService.CreateRecoveryCodeForIdentityExecute(r) } @@ -647,10 +647,10 @@ func (r IdentityApiApiCreateRecoveryCodeForIdentityRequest) Execute() (*Recovery (or activate) their account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return IdentityApiApiCreateRecoveryCodeForIdentityRequest + - @return IdentityAPIApiCreateRecoveryCodeForIdentityRequest */ -func (a *IdentityApiService) CreateRecoveryCodeForIdentity(ctx context.Context) IdentityApiApiCreateRecoveryCodeForIdentityRequest { - return IdentityApiApiCreateRecoveryCodeForIdentityRequest{ +func (a *IdentityAPIService) CreateRecoveryCodeForIdentity(ctx context.Context) IdentityAPIApiCreateRecoveryCodeForIdentityRequest { + return IdentityAPIApiCreateRecoveryCodeForIdentityRequest{ ApiService: a, ctx: ctx, } @@ -660,7 +660,7 @@ func (a *IdentityApiService) CreateRecoveryCodeForIdentity(ctx context.Context) * Execute executes the request * @return RecoveryCodeForIdentity */ -func (a *IdentityApiService) CreateRecoveryCodeForIdentityExecute(r IdentityApiApiCreateRecoveryCodeForIdentityRequest) (*RecoveryCodeForIdentity, *http.Response, error) { +func (a *IdentityAPIService) CreateRecoveryCodeForIdentityExecute(r IdentityAPIApiCreateRecoveryCodeForIdentityRequest) (*RecoveryCodeForIdentity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -670,7 +670,7 @@ func (a *IdentityApiService) CreateRecoveryCodeForIdentityExecute(r IdentityApiA localVarReturnValue *RecoveryCodeForIdentity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.CreateRecoveryCodeForIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.CreateRecoveryCodeForIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -778,23 +778,23 @@ func (a *IdentityApiService) CreateRecoveryCodeForIdentityExecute(r IdentityApiA return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiCreateRecoveryLinkForIdentityRequest struct { +type IdentityAPIApiCreateRecoveryLinkForIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI returnTo *string createRecoveryLinkForIdentityBody *CreateRecoveryLinkForIdentityBody } -func (r IdentityApiApiCreateRecoveryLinkForIdentityRequest) ReturnTo(returnTo string) IdentityApiApiCreateRecoveryLinkForIdentityRequest { +func (r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) ReturnTo(returnTo string) IdentityAPIApiCreateRecoveryLinkForIdentityRequest { r.returnTo = &returnTo return r } -func (r IdentityApiApiCreateRecoveryLinkForIdentityRequest) CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody CreateRecoveryLinkForIdentityBody) IdentityApiApiCreateRecoveryLinkForIdentityRequest { +func (r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody CreateRecoveryLinkForIdentityBody) IdentityAPIApiCreateRecoveryLinkForIdentityRequest { r.createRecoveryLinkForIdentityBody = &createRecoveryLinkForIdentityBody return r } -func (r IdentityApiApiCreateRecoveryLinkForIdentityRequest) Execute() (*RecoveryLinkForIdentity, *http.Response, error) { +func (r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) Execute() (*RecoveryLinkForIdentity, *http.Response, error) { return r.ApiService.CreateRecoveryLinkForIdentityExecute(r) } @@ -804,10 +804,10 @@ func (r IdentityApiApiCreateRecoveryLinkForIdentityRequest) Execute() (*Recovery (or activate) their account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return IdentityApiApiCreateRecoveryLinkForIdentityRequest + - @return IdentityAPIApiCreateRecoveryLinkForIdentityRequest */ -func (a *IdentityApiService) CreateRecoveryLinkForIdentity(ctx context.Context) IdentityApiApiCreateRecoveryLinkForIdentityRequest { - return IdentityApiApiCreateRecoveryLinkForIdentityRequest{ +func (a *IdentityAPIService) CreateRecoveryLinkForIdentity(ctx context.Context) IdentityAPIApiCreateRecoveryLinkForIdentityRequest { + return IdentityAPIApiCreateRecoveryLinkForIdentityRequest{ ApiService: a, ctx: ctx, } @@ -817,7 +817,7 @@ func (a *IdentityApiService) CreateRecoveryLinkForIdentity(ctx context.Context) * Execute executes the request * @return RecoveryLinkForIdentity */ -func (a *IdentityApiService) CreateRecoveryLinkForIdentityExecute(r IdentityApiApiCreateRecoveryLinkForIdentityRequest) (*RecoveryLinkForIdentity, *http.Response, error) { +func (a *IdentityAPIService) CreateRecoveryLinkForIdentityExecute(r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) (*RecoveryLinkForIdentity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -827,7 +827,7 @@ func (a *IdentityApiService) CreateRecoveryLinkForIdentityExecute(r IdentityApiA localVarReturnValue *RecoveryLinkForIdentity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.CreateRecoveryLinkForIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.CreateRecoveryLinkForIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -938,13 +938,13 @@ func (a *IdentityApiService) CreateRecoveryLinkForIdentityExecute(r IdentityApiA return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiDeleteIdentityRequest struct { +type IdentityAPIApiDeleteIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiDeleteIdentityRequest) Execute() (*http.Response, error) { +func (r IdentityAPIApiDeleteIdentityRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteIdentityExecute(r) } @@ -956,10 +956,10 @@ This endpoint returns 204 when the identity was deleted or when the identity was assumed that is has been deleted already. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the identity's ID. - - @return IdentityApiApiDeleteIdentityRequest + - @return IdentityAPIApiDeleteIdentityRequest */ -func (a *IdentityApiService) DeleteIdentity(ctx context.Context, id string) IdentityApiApiDeleteIdentityRequest { - return IdentityApiApiDeleteIdentityRequest{ +func (a *IdentityAPIService) DeleteIdentity(ctx context.Context, id string) IdentityAPIApiDeleteIdentityRequest { + return IdentityAPIApiDeleteIdentityRequest{ ApiService: a, ctx: ctx, id: id, @@ -969,7 +969,7 @@ func (a *IdentityApiService) DeleteIdentity(ctx context.Context, id string) Iden /* * Execute executes the request */ -func (a *IdentityApiService) DeleteIdentityExecute(r IdentityApiApiDeleteIdentityRequest) (*http.Response, error) { +func (a *IdentityAPIService) DeleteIdentityExecute(r IdentityAPIApiDeleteIdentityRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -978,7 +978,7 @@ func (a *IdentityApiService) DeleteIdentityExecute(r IdentityApiApiDeleteIdentit localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.DeleteIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.DeleteIdentity") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1066,20 +1066,20 @@ func (a *IdentityApiService) DeleteIdentityExecute(r IdentityApiApiDeleteIdentit return localVarHTTPResponse, nil } -type IdentityApiApiDeleteIdentityCredentialsRequest struct { +type IdentityAPIApiDeleteIdentityCredentialsRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string type_ string identifier *string } -func (r IdentityApiApiDeleteIdentityCredentialsRequest) Identifier(identifier string) IdentityApiApiDeleteIdentityCredentialsRequest { +func (r IdentityAPIApiDeleteIdentityCredentialsRequest) Identifier(identifier string) IdentityAPIApiDeleteIdentityCredentialsRequest { r.identifier = &identifier return r } -func (r IdentityApiApiDeleteIdentityCredentialsRequest) Execute() (*http.Response, error) { +func (r IdentityAPIApiDeleteIdentityCredentialsRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteIdentityCredentialsExecute(r) } @@ -1091,10 +1091,10 @@ You cannot delete password or code auth credentials through this API. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the identity's ID. - @param type_ Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode - - @return IdentityApiApiDeleteIdentityCredentialsRequest + - @return IdentityAPIApiDeleteIdentityCredentialsRequest */ -func (a *IdentityApiService) DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityApiApiDeleteIdentityCredentialsRequest { - return IdentityApiApiDeleteIdentityCredentialsRequest{ +func (a *IdentityAPIService) DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityAPIApiDeleteIdentityCredentialsRequest { + return IdentityAPIApiDeleteIdentityCredentialsRequest{ ApiService: a, ctx: ctx, id: id, @@ -1105,7 +1105,7 @@ func (a *IdentityApiService) DeleteIdentityCredentials(ctx context.Context, id s /* * Execute executes the request */ -func (a *IdentityApiService) DeleteIdentityCredentialsExecute(r IdentityApiApiDeleteIdentityCredentialsRequest) (*http.Response, error) { +func (a *IdentityAPIService) DeleteIdentityCredentialsExecute(r IdentityAPIApiDeleteIdentityCredentialsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -1114,7 +1114,7 @@ func (a *IdentityApiService) DeleteIdentityCredentialsExecute(r IdentityApiApiDe localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.DeleteIdentityCredentials") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.DeleteIdentityCredentials") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1206,13 +1206,13 @@ func (a *IdentityApiService) DeleteIdentityCredentialsExecute(r IdentityApiApiDe return localVarHTTPResponse, nil } -type IdentityApiApiDeleteIdentitySessionsRequest struct { +type IdentityAPIApiDeleteIdentitySessionsRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiDeleteIdentitySessionsRequest) Execute() (*http.Response, error) { +func (r IdentityAPIApiDeleteIdentitySessionsRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteIdentitySessionsExecute(r) } @@ -1221,10 +1221,10 @@ func (r IdentityApiApiDeleteIdentitySessionsRequest) Execute() (*http.Response, * Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiDeleteIdentitySessionsRequest + * @return IdentityAPIApiDeleteIdentitySessionsRequest */ -func (a *IdentityApiService) DeleteIdentitySessions(ctx context.Context, id string) IdentityApiApiDeleteIdentitySessionsRequest { - return IdentityApiApiDeleteIdentitySessionsRequest{ +func (a *IdentityAPIService) DeleteIdentitySessions(ctx context.Context, id string) IdentityAPIApiDeleteIdentitySessionsRequest { + return IdentityAPIApiDeleteIdentitySessionsRequest{ ApiService: a, ctx: ctx, id: id, @@ -1234,7 +1234,7 @@ func (a *IdentityApiService) DeleteIdentitySessions(ctx context.Context, id stri /* * Execute executes the request */ -func (a *IdentityApiService) DeleteIdentitySessionsExecute(r IdentityApiApiDeleteIdentitySessionsRequest) (*http.Response, error) { +func (a *IdentityAPIService) DeleteIdentitySessionsExecute(r IdentityAPIApiDeleteIdentitySessionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -1243,7 +1243,7 @@ func (a *IdentityApiService) DeleteIdentitySessionsExecute(r IdentityApiApiDelet localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.DeleteIdentitySessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.DeleteIdentitySessions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1351,13 +1351,13 @@ func (a *IdentityApiService) DeleteIdentitySessionsExecute(r IdentityApiApiDelet return localVarHTTPResponse, nil } -type IdentityApiApiDisableSessionRequest struct { +type IdentityAPIApiDisableSessionRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiDisableSessionRequest) Execute() (*http.Response, error) { +func (r IdentityAPIApiDisableSessionRequest) Execute() (*http.Response, error) { return r.ApiService.DisableSessionExecute(r) } @@ -1366,10 +1366,10 @@ func (r IdentityApiApiDisableSessionRequest) Execute() (*http.Response, error) { * Calling this endpoint deactivates the specified session. Session data is not deleted. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return IdentityApiApiDisableSessionRequest + * @return IdentityAPIApiDisableSessionRequest */ -func (a *IdentityApiService) DisableSession(ctx context.Context, id string) IdentityApiApiDisableSessionRequest { - return IdentityApiApiDisableSessionRequest{ +func (a *IdentityAPIService) DisableSession(ctx context.Context, id string) IdentityAPIApiDisableSessionRequest { + return IdentityAPIApiDisableSessionRequest{ ApiService: a, ctx: ctx, id: id, @@ -1379,7 +1379,7 @@ func (a *IdentityApiService) DisableSession(ctx context.Context, id string) Iden /* * Execute executes the request */ -func (a *IdentityApiService) DisableSessionExecute(r IdentityApiApiDisableSessionRequest) (*http.Response, error) { +func (a *IdentityAPIService) DisableSessionExecute(r IdentityAPIApiDisableSessionRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -1388,7 +1388,7 @@ func (a *IdentityApiService) DisableSessionExecute(r IdentityApiApiDisableSessio localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.DisableSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.DisableSession") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1486,13 +1486,13 @@ func (a *IdentityApiService) DisableSessionExecute(r IdentityApiApiDisableSessio return localVarHTTPResponse, nil } -type IdentityApiApiExtendSessionRequest struct { +type IdentityAPIApiExtendSessionRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiExtendSessionRequest) Execute() (*Session, *http.Response, error) { +func (r IdentityAPIApiExtendSessionRequest) Execute() (*Session, *http.Response, error) { return r.ApiService.ExtendSessionExecute(r) } @@ -1512,10 +1512,10 @@ scenarios. This endpoint also returns 404 errors if the session does not exist. Retrieve the session ID from the `/sessions/whoami` endpoint / `toSession` SDK method. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the session's ID. - - @return IdentityApiApiExtendSessionRequest + - @return IdentityAPIApiExtendSessionRequest */ -func (a *IdentityApiService) ExtendSession(ctx context.Context, id string) IdentityApiApiExtendSessionRequest { - return IdentityApiApiExtendSessionRequest{ +func (a *IdentityAPIService) ExtendSession(ctx context.Context, id string) IdentityAPIApiExtendSessionRequest { + return IdentityAPIApiExtendSessionRequest{ ApiService: a, ctx: ctx, id: id, @@ -1526,7 +1526,7 @@ func (a *IdentityApiService) ExtendSession(ctx context.Context, id string) Ident * Execute executes the request * @return Session */ -func (a *IdentityApiService) ExtendSessionExecute(r IdentityApiApiExtendSessionRequest) (*Session, *http.Response, error) { +func (a *IdentityAPIService) ExtendSessionExecute(r IdentityAPIApiExtendSessionRequest) (*Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} @@ -1536,7 +1536,7 @@ func (a *IdentityApiService) ExtendSessionExecute(r IdentityApiApiExtendSessionR localVarReturnValue *Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ExtendSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ExtendSession") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1643,19 +1643,19 @@ func (a *IdentityApiService) ExtendSessionExecute(r IdentityApiApiExtendSessionR return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiGetIdentityRequest struct { +type IdentityAPIApiGetIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string includeCredential *[]string } -func (r IdentityApiApiGetIdentityRequest) IncludeCredential(includeCredential []string) IdentityApiApiGetIdentityRequest { +func (r IdentityAPIApiGetIdentityRequest) IncludeCredential(includeCredential []string) IdentityAPIApiGetIdentityRequest { r.includeCredential = &includeCredential return r } -func (r IdentityApiApiGetIdentityRequest) Execute() (*Identity, *http.Response, error) { +func (r IdentityAPIApiGetIdentityRequest) Execute() (*Identity, *http.Response, error) { return r.ApiService.GetIdentityExecute(r) } @@ -1666,10 +1666,10 @@ func (r IdentityApiApiGetIdentityRequest) Execute() (*Identity, *http.Response, include credentials (e.g. social sign in connections) in the response by using the `include_credential` query parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID must be set to the ID of identity you want to get - - @return IdentityApiApiGetIdentityRequest + - @return IdentityAPIApiGetIdentityRequest */ -func (a *IdentityApiService) GetIdentity(ctx context.Context, id string) IdentityApiApiGetIdentityRequest { - return IdentityApiApiGetIdentityRequest{ +func (a *IdentityAPIService) GetIdentity(ctx context.Context, id string) IdentityAPIApiGetIdentityRequest { + return IdentityAPIApiGetIdentityRequest{ ApiService: a, ctx: ctx, id: id, @@ -1680,7 +1680,7 @@ func (a *IdentityApiService) GetIdentity(ctx context.Context, id string) Identit * Execute executes the request * @return Identity */ -func (a *IdentityApiService) GetIdentityExecute(r IdentityApiApiGetIdentityRequest) (*Identity, *http.Response, error) { +func (a *IdentityAPIService) GetIdentityExecute(r IdentityAPIApiGetIdentityRequest) (*Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1690,7 +1690,7 @@ func (a *IdentityApiService) GetIdentityExecute(r IdentityApiApiGetIdentityReque localVarReturnValue *Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.GetIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.GetIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1798,13 +1798,13 @@ func (a *IdentityApiService) GetIdentityExecute(r IdentityApiApiGetIdentityReque return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiGetIdentitySchemaRequest struct { +type IdentityAPIApiGetIdentitySchemaRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiGetIdentitySchemaRequest) Execute() (map[string]interface{}, *http.Response, error) { +func (r IdentityAPIApiGetIdentitySchemaRequest) Execute() (map[string]interface{}, *http.Response, error) { return r.ApiService.GetIdentitySchemaExecute(r) } @@ -1813,10 +1813,10 @@ func (r IdentityApiApiGetIdentitySchemaRequest) Execute() (map[string]interface{ * Return a specific identity schema. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of schema you want to get - * @return IdentityApiApiGetIdentitySchemaRequest + * @return IdentityAPIApiGetIdentitySchemaRequest */ -func (a *IdentityApiService) GetIdentitySchema(ctx context.Context, id string) IdentityApiApiGetIdentitySchemaRequest { - return IdentityApiApiGetIdentitySchemaRequest{ +func (a *IdentityAPIService) GetIdentitySchema(ctx context.Context, id string) IdentityAPIApiGetIdentitySchemaRequest { + return IdentityAPIApiGetIdentitySchemaRequest{ ApiService: a, ctx: ctx, id: id, @@ -1827,7 +1827,7 @@ func (a *IdentityApiService) GetIdentitySchema(ctx context.Context, id string) I * Execute executes the request * @return map[string]interface{} */ -func (a *IdentityApiService) GetIdentitySchemaExecute(r IdentityApiApiGetIdentitySchemaRequest) (map[string]interface{}, *http.Response, error) { +func (a *IdentityAPIService) GetIdentitySchemaExecute(r IdentityAPIApiGetIdentitySchemaRequest) (map[string]interface{}, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1837,7 +1837,7 @@ func (a *IdentityApiService) GetIdentitySchemaExecute(r IdentityApiApiGetIdentit localVarReturnValue map[string]interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.GetIdentitySchema") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.GetIdentitySchema") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1920,19 +1920,19 @@ func (a *IdentityApiService) GetIdentitySchemaExecute(r IdentityApiApiGetIdentit return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiGetSessionRequest struct { +type IdentityAPIApiGetSessionRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string expand *[]string } -func (r IdentityApiApiGetSessionRequest) Expand(expand []string) IdentityApiApiGetSessionRequest { +func (r IdentityAPIApiGetSessionRequest) Expand(expand []string) IdentityAPIApiGetSessionRequest { r.expand = &expand return r } -func (r IdentityApiApiGetSessionRequest) Execute() (*Session, *http.Response, error) { +func (r IdentityAPIApiGetSessionRequest) Execute() (*Session, *http.Response, error) { return r.ApiService.GetSessionExecute(r) } @@ -1943,10 +1943,10 @@ func (r IdentityApiApiGetSessionRequest) Execute() (*Session, *http.Response, er Getting a session object with all specified expandables that exist in an administrative context. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the session's ID. - - @return IdentityApiApiGetSessionRequest + - @return IdentityAPIApiGetSessionRequest */ -func (a *IdentityApiService) GetSession(ctx context.Context, id string) IdentityApiApiGetSessionRequest { - return IdentityApiApiGetSessionRequest{ +func (a *IdentityAPIService) GetSession(ctx context.Context, id string) IdentityAPIApiGetSessionRequest { + return IdentityAPIApiGetSessionRequest{ ApiService: a, ctx: ctx, id: id, @@ -1957,7 +1957,7 @@ func (a *IdentityApiService) GetSession(ctx context.Context, id string) Identity * Execute executes the request * @return Session */ -func (a *IdentityApiService) GetSessionExecute(r IdentityApiApiGetSessionRequest) (*Session, *http.Response, error) { +func (a *IdentityAPIService) GetSessionExecute(r IdentityAPIApiGetSessionRequest) (*Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1967,7 +1967,7 @@ func (a *IdentityApiService) GetSessionExecute(r IdentityApiApiGetSessionRequest localVarReturnValue *Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.GetSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.GetSession") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2075,9 +2075,9 @@ func (a *IdentityApiService) GetSessionExecute(r IdentityApiApiGetSessionRequest return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiListIdentitiesRequest struct { +type IdentityAPIApiListIdentitiesRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI perPage *int64 page *int64 pageSize *int64 @@ -2089,44 +2089,44 @@ type IdentityApiApiListIdentitiesRequest struct { includeCredential *[]string } -func (r IdentityApiApiListIdentitiesRequest) PerPage(perPage int64) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) PerPage(perPage int64) IdentityAPIApiListIdentitiesRequest { r.perPage = &perPage return r } -func (r IdentityApiApiListIdentitiesRequest) Page(page int64) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) Page(page int64) IdentityAPIApiListIdentitiesRequest { r.page = &page return r } -func (r IdentityApiApiListIdentitiesRequest) PageSize(pageSize int64) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) PageSize(pageSize int64) IdentityAPIApiListIdentitiesRequest { r.pageSize = &pageSize return r } -func (r IdentityApiApiListIdentitiesRequest) PageToken(pageToken string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) PageToken(pageToken string) IdentityAPIApiListIdentitiesRequest { r.pageToken = &pageToken return r } -func (r IdentityApiApiListIdentitiesRequest) Consistency(consistency string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) Consistency(consistency string) IdentityAPIApiListIdentitiesRequest { r.consistency = &consistency return r } -func (r IdentityApiApiListIdentitiesRequest) Ids(ids []string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) Ids(ids []string) IdentityAPIApiListIdentitiesRequest { r.ids = &ids return r } -func (r IdentityApiApiListIdentitiesRequest) CredentialsIdentifier(credentialsIdentifier string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) CredentialsIdentifier(credentialsIdentifier string) IdentityAPIApiListIdentitiesRequest { r.credentialsIdentifier = &credentialsIdentifier return r } -func (r IdentityApiApiListIdentitiesRequest) PreviewCredentialsIdentifierSimilar(previewCredentialsIdentifierSimilar string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) PreviewCredentialsIdentifierSimilar(previewCredentialsIdentifierSimilar string) IdentityAPIApiListIdentitiesRequest { r.previewCredentialsIdentifierSimilar = &previewCredentialsIdentifierSimilar return r } -func (r IdentityApiApiListIdentitiesRequest) IncludeCredential(includeCredential []string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) IncludeCredential(includeCredential []string) IdentityAPIApiListIdentitiesRequest { r.includeCredential = &includeCredential return r } -func (r IdentityApiApiListIdentitiesRequest) Execute() ([]Identity, *http.Response, error) { +func (r IdentityAPIApiListIdentitiesRequest) Execute() ([]Identity, *http.Response, error) { return r.ApiService.ListIdentitiesExecute(r) } @@ -2134,10 +2134,10 @@ func (r IdentityApiApiListIdentitiesRequest) Execute() ([]Identity, *http.Respon * ListIdentities List Identities * Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListIdentitiesRequest + * @return IdentityAPIApiListIdentitiesRequest */ -func (a *IdentityApiService) ListIdentities(ctx context.Context) IdentityApiApiListIdentitiesRequest { - return IdentityApiApiListIdentitiesRequest{ +func (a *IdentityAPIService) ListIdentities(ctx context.Context) IdentityAPIApiListIdentitiesRequest { + return IdentityAPIApiListIdentitiesRequest{ ApiService: a, ctx: ctx, } @@ -2147,7 +2147,7 @@ func (a *IdentityApiService) ListIdentities(ctx context.Context) IdentityApiApiL * Execute executes the request * @return []Identity */ -func (a *IdentityApiService) ListIdentitiesExecute(r IdentityApiApiListIdentitiesRequest) ([]Identity, *http.Response, error) { +func (a *IdentityAPIService) ListIdentitiesExecute(r IdentityAPIApiListIdentitiesRequest) ([]Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2157,7 +2157,7 @@ func (a *IdentityApiService) ListIdentitiesExecute(r IdentityApiApiListIdentitie localVarReturnValue []Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ListIdentities") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ListIdentities") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2286,33 +2286,33 @@ func (a *IdentityApiService) ListIdentitiesExecute(r IdentityApiApiListIdentitie return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiListIdentitySchemasRequest struct { +type IdentityAPIApiListIdentitySchemasRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI perPage *int64 page *int64 pageSize *int64 pageToken *string } -func (r IdentityApiApiListIdentitySchemasRequest) PerPage(perPage int64) IdentityApiApiListIdentitySchemasRequest { +func (r IdentityAPIApiListIdentitySchemasRequest) PerPage(perPage int64) IdentityAPIApiListIdentitySchemasRequest { r.perPage = &perPage return r } -func (r IdentityApiApiListIdentitySchemasRequest) Page(page int64) IdentityApiApiListIdentitySchemasRequest { +func (r IdentityAPIApiListIdentitySchemasRequest) Page(page int64) IdentityAPIApiListIdentitySchemasRequest { r.page = &page return r } -func (r IdentityApiApiListIdentitySchemasRequest) PageSize(pageSize int64) IdentityApiApiListIdentitySchemasRequest { +func (r IdentityAPIApiListIdentitySchemasRequest) PageSize(pageSize int64) IdentityAPIApiListIdentitySchemasRequest { r.pageSize = &pageSize return r } -func (r IdentityApiApiListIdentitySchemasRequest) PageToken(pageToken string) IdentityApiApiListIdentitySchemasRequest { +func (r IdentityAPIApiListIdentitySchemasRequest) PageToken(pageToken string) IdentityAPIApiListIdentitySchemasRequest { r.pageToken = &pageToken return r } -func (r IdentityApiApiListIdentitySchemasRequest) Execute() ([]IdentitySchemaContainer, *http.Response, error) { +func (r IdentityAPIApiListIdentitySchemasRequest) Execute() ([]IdentitySchemaContainer, *http.Response, error) { return r.ApiService.ListIdentitySchemasExecute(r) } @@ -2320,10 +2320,10 @@ func (r IdentityApiApiListIdentitySchemasRequest) Execute() ([]IdentitySchemaCon * ListIdentitySchemas Get all Identity Schemas * Returns a list of all identity schemas currently in use. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListIdentitySchemasRequest + * @return IdentityAPIApiListIdentitySchemasRequest */ -func (a *IdentityApiService) ListIdentitySchemas(ctx context.Context) IdentityApiApiListIdentitySchemasRequest { - return IdentityApiApiListIdentitySchemasRequest{ +func (a *IdentityAPIService) ListIdentitySchemas(ctx context.Context) IdentityAPIApiListIdentitySchemasRequest { + return IdentityAPIApiListIdentitySchemasRequest{ ApiService: a, ctx: ctx, } @@ -2333,7 +2333,7 @@ func (a *IdentityApiService) ListIdentitySchemas(ctx context.Context) IdentityAp * Execute executes the request * @return []IdentitySchemaContainer */ -func (a *IdentityApiService) ListIdentitySchemasExecute(r IdentityApiApiListIdentitySchemasRequest) ([]IdentitySchemaContainer, *http.Response, error) { +func (a *IdentityAPIService) ListIdentitySchemasExecute(r IdentityAPIApiListIdentitySchemasRequest) ([]IdentitySchemaContainer, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2343,7 +2343,7 @@ func (a *IdentityApiService) ListIdentitySchemasExecute(r IdentityApiApiListIden localVarReturnValue []IdentitySchemaContainer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ListIdentitySchemas") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ListIdentitySchemas") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2427,9 +2427,9 @@ func (a *IdentityApiService) ListIdentitySchemasExecute(r IdentityApiApiListIden return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiListIdentitySessionsRequest struct { +type IdentityAPIApiListIdentitySessionsRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string perPage *int64 page *int64 @@ -2438,28 +2438,28 @@ type IdentityApiApiListIdentitySessionsRequest struct { active *bool } -func (r IdentityApiApiListIdentitySessionsRequest) PerPage(perPage int64) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) PerPage(perPage int64) IdentityAPIApiListIdentitySessionsRequest { r.perPage = &perPage return r } -func (r IdentityApiApiListIdentitySessionsRequest) Page(page int64) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) Page(page int64) IdentityAPIApiListIdentitySessionsRequest { r.page = &page return r } -func (r IdentityApiApiListIdentitySessionsRequest) PageSize(pageSize int64) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) PageSize(pageSize int64) IdentityAPIApiListIdentitySessionsRequest { r.pageSize = &pageSize return r } -func (r IdentityApiApiListIdentitySessionsRequest) PageToken(pageToken string) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) PageToken(pageToken string) IdentityAPIApiListIdentitySessionsRequest { r.pageToken = &pageToken return r } -func (r IdentityApiApiListIdentitySessionsRequest) Active(active bool) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) Active(active bool) IdentityAPIApiListIdentitySessionsRequest { r.active = &active return r } -func (r IdentityApiApiListIdentitySessionsRequest) Execute() ([]Session, *http.Response, error) { +func (r IdentityAPIApiListIdentitySessionsRequest) Execute() ([]Session, *http.Response, error) { return r.ApiService.ListIdentitySessionsExecute(r) } @@ -2468,10 +2468,10 @@ func (r IdentityApiApiListIdentitySessionsRequest) Execute() ([]Session, *http.R * This endpoint returns all sessions that belong to the given Identity. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiListIdentitySessionsRequest + * @return IdentityAPIApiListIdentitySessionsRequest */ -func (a *IdentityApiService) ListIdentitySessions(ctx context.Context, id string) IdentityApiApiListIdentitySessionsRequest { - return IdentityApiApiListIdentitySessionsRequest{ +func (a *IdentityAPIService) ListIdentitySessions(ctx context.Context, id string) IdentityAPIApiListIdentitySessionsRequest { + return IdentityAPIApiListIdentitySessionsRequest{ ApiService: a, ctx: ctx, id: id, @@ -2482,7 +2482,7 @@ func (a *IdentityApiService) ListIdentitySessions(ctx context.Context, id string * Execute executes the request * @return []Session */ -func (a *IdentityApiService) ListIdentitySessionsExecute(r IdentityApiApiListIdentitySessionsRequest) ([]Session, *http.Response, error) { +func (a *IdentityAPIService) ListIdentitySessionsExecute(r IdentityAPIApiListIdentitySessionsRequest) ([]Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2492,7 +2492,7 @@ func (a *IdentityApiService) ListIdentitySessionsExecute(r IdentityApiApiListIde localVarReturnValue []Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ListIdentitySessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ListIdentitySessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2614,33 +2614,33 @@ func (a *IdentityApiService) ListIdentitySessionsExecute(r IdentityApiApiListIde return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiListSessionsRequest struct { +type IdentityAPIApiListSessionsRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI pageSize *int64 pageToken *string active *bool expand *[]string } -func (r IdentityApiApiListSessionsRequest) PageSize(pageSize int64) IdentityApiApiListSessionsRequest { +func (r IdentityAPIApiListSessionsRequest) PageSize(pageSize int64) IdentityAPIApiListSessionsRequest { r.pageSize = &pageSize return r } -func (r IdentityApiApiListSessionsRequest) PageToken(pageToken string) IdentityApiApiListSessionsRequest { +func (r IdentityAPIApiListSessionsRequest) PageToken(pageToken string) IdentityAPIApiListSessionsRequest { r.pageToken = &pageToken return r } -func (r IdentityApiApiListSessionsRequest) Active(active bool) IdentityApiApiListSessionsRequest { +func (r IdentityAPIApiListSessionsRequest) Active(active bool) IdentityAPIApiListSessionsRequest { r.active = &active return r } -func (r IdentityApiApiListSessionsRequest) Expand(expand []string) IdentityApiApiListSessionsRequest { +func (r IdentityAPIApiListSessionsRequest) Expand(expand []string) IdentityAPIApiListSessionsRequest { r.expand = &expand return r } -func (r IdentityApiApiListSessionsRequest) Execute() ([]Session, *http.Response, error) { +func (r IdentityAPIApiListSessionsRequest) Execute() ([]Session, *http.Response, error) { return r.ApiService.ListSessionsExecute(r) } @@ -2648,10 +2648,10 @@ func (r IdentityApiApiListSessionsRequest) Execute() ([]Session, *http.Response, * ListSessions List All Sessions * Listing all sessions that exist. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListSessionsRequest + * @return IdentityAPIApiListSessionsRequest */ -func (a *IdentityApiService) ListSessions(ctx context.Context) IdentityApiApiListSessionsRequest { - return IdentityApiApiListSessionsRequest{ +func (a *IdentityAPIService) ListSessions(ctx context.Context) IdentityAPIApiListSessionsRequest { + return IdentityAPIApiListSessionsRequest{ ApiService: a, ctx: ctx, } @@ -2661,7 +2661,7 @@ func (a *IdentityApiService) ListSessions(ctx context.Context) IdentityApiApiLis * Execute executes the request * @return []Session */ -func (a *IdentityApiService) ListSessionsExecute(r IdentityApiApiListSessionsRequest) ([]Session, *http.Response, error) { +func (a *IdentityAPIService) ListSessionsExecute(r IdentityAPIApiListSessionsRequest) ([]Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2671,7 +2671,7 @@ func (a *IdentityApiService) ListSessionsExecute(r IdentityApiApiListSessionsReq localVarReturnValue []Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ListSessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ListSessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2787,19 +2787,19 @@ func (a *IdentityApiService) ListSessionsExecute(r IdentityApiApiListSessionsReq return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiPatchIdentityRequest struct { +type IdentityAPIApiPatchIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string jsonPatch *[]JsonPatch } -func (r IdentityApiApiPatchIdentityRequest) JsonPatch(jsonPatch []JsonPatch) IdentityApiApiPatchIdentityRequest { +func (r IdentityAPIApiPatchIdentityRequest) JsonPatch(jsonPatch []JsonPatch) IdentityAPIApiPatchIdentityRequest { r.jsonPatch = &jsonPatch return r } -func (r IdentityApiApiPatchIdentityRequest) Execute() (*Identity, *http.Response, error) { +func (r IdentityAPIApiPatchIdentityRequest) Execute() (*Identity, *http.Response, error) { return r.ApiService.PatchIdentityExecute(r) } @@ -2810,10 +2810,10 @@ func (r IdentityApiApiPatchIdentityRequest) Execute() (*Identity, *http.Response The fields `id`, `stateChangedAt` and `credentials` can not be updated using this method. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID must be set to the ID of identity you want to update - - @return IdentityApiApiPatchIdentityRequest + - @return IdentityAPIApiPatchIdentityRequest */ -func (a *IdentityApiService) PatchIdentity(ctx context.Context, id string) IdentityApiApiPatchIdentityRequest { - return IdentityApiApiPatchIdentityRequest{ +func (a *IdentityAPIService) PatchIdentity(ctx context.Context, id string) IdentityAPIApiPatchIdentityRequest { + return IdentityAPIApiPatchIdentityRequest{ ApiService: a, ctx: ctx, id: id, @@ -2824,7 +2824,7 @@ func (a *IdentityApiService) PatchIdentity(ctx context.Context, id string) Ident * Execute executes the request * @return Identity */ -func (a *IdentityApiService) PatchIdentityExecute(r IdentityApiApiPatchIdentityRequest) (*Identity, *http.Response, error) { +func (a *IdentityAPIService) PatchIdentityExecute(r IdentityAPIApiPatchIdentityRequest) (*Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} @@ -2834,7 +2834,7 @@ func (a *IdentityApiService) PatchIdentityExecute(r IdentityApiApiPatchIdentityR localVarReturnValue *Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.PatchIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.PatchIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2953,19 +2953,19 @@ func (a *IdentityApiService) PatchIdentityExecute(r IdentityApiApiPatchIdentityR return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiUpdateIdentityRequest struct { +type IdentityAPIApiUpdateIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string updateIdentityBody *UpdateIdentityBody } -func (r IdentityApiApiUpdateIdentityRequest) UpdateIdentityBody(updateIdentityBody UpdateIdentityBody) IdentityApiApiUpdateIdentityRequest { +func (r IdentityAPIApiUpdateIdentityRequest) UpdateIdentityBody(updateIdentityBody UpdateIdentityBody) IdentityAPIApiUpdateIdentityRequest { r.updateIdentityBody = &updateIdentityBody return r } -func (r IdentityApiApiUpdateIdentityRequest) Execute() (*Identity, *http.Response, error) { +func (r IdentityAPIApiUpdateIdentityRequest) Execute() (*Identity, *http.Response, error) { return r.ApiService.UpdateIdentityExecute(r) } @@ -2976,10 +2976,10 @@ func (r IdentityApiApiUpdateIdentityRequest) Execute() (*Identity, *http.Respons payload (except credentials) is expected. It is possible to update the identity's credentials as well. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID must be set to the ID of identity you want to update - - @return IdentityApiApiUpdateIdentityRequest + - @return IdentityAPIApiUpdateIdentityRequest */ -func (a *IdentityApiService) UpdateIdentity(ctx context.Context, id string) IdentityApiApiUpdateIdentityRequest { - return IdentityApiApiUpdateIdentityRequest{ +func (a *IdentityAPIService) UpdateIdentity(ctx context.Context, id string) IdentityAPIApiUpdateIdentityRequest { + return IdentityAPIApiUpdateIdentityRequest{ ApiService: a, ctx: ctx, id: id, @@ -2990,7 +2990,7 @@ func (a *IdentityApiService) UpdateIdentity(ctx context.Context, id string) Iden * Execute executes the request * @return Identity */ -func (a *IdentityApiService) UpdateIdentityExecute(r IdentityApiApiUpdateIdentityRequest) (*Identity, *http.Response, error) { +func (a *IdentityAPIService) UpdateIdentityExecute(r IdentityAPIApiUpdateIdentityRequest) (*Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3000,7 +3000,7 @@ func (a *IdentityApiService) UpdateIdentityExecute(r IdentityApiApiUpdateIdentit localVarReturnValue *Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.UpdateIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.UpdateIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/internal/client-go/api_metadata.go b/internal/client-go/api_metadata.go index e5ac1a854d5d..4bef0d5cb6ca 100644 --- a/internal/client-go/api_metadata.go +++ b/internal/client-go/api_metadata.go @@ -24,7 +24,7 @@ var ( _ context.Context ) -type MetadataApi interface { +type MetadataAPI interface { /* * GetVersion Return Running Software Version. @@ -36,15 +36,15 @@ type MetadataApi interface { Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return MetadataApiApiGetVersionRequest + * @return MetadataAPIApiGetVersionRequest */ - GetVersion(ctx context.Context) MetadataApiApiGetVersionRequest + GetVersion(ctx context.Context) MetadataAPIApiGetVersionRequest /* * GetVersionExecute executes the request * @return GetVersion200Response */ - GetVersionExecute(r MetadataApiApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) + GetVersionExecute(r MetadataAPIApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) /* * IsAlive Check HTTP Server Status @@ -57,15 +57,15 @@ type MetadataApi interface { Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return MetadataApiApiIsAliveRequest + * @return MetadataAPIApiIsAliveRequest */ - IsAlive(ctx context.Context) MetadataApiApiIsAliveRequest + IsAlive(ctx context.Context) MetadataAPIApiIsAliveRequest /* * IsAliveExecute executes the request * @return IsAlive200Response */ - IsAliveExecute(r MetadataApiApiIsAliveRequest) (*IsAlive200Response, *http.Response, error) + IsAliveExecute(r MetadataAPIApiIsAliveRequest) (*IsAlive200Response, *http.Response, error) /* * IsReady Check HTTP Server and Database Status @@ -78,26 +78,26 @@ type MetadataApi interface { Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return MetadataApiApiIsReadyRequest + * @return MetadataAPIApiIsReadyRequest */ - IsReady(ctx context.Context) MetadataApiApiIsReadyRequest + IsReady(ctx context.Context) MetadataAPIApiIsReadyRequest /* * IsReadyExecute executes the request * @return IsAlive200Response */ - IsReadyExecute(r MetadataApiApiIsReadyRequest) (*IsAlive200Response, *http.Response, error) + IsReadyExecute(r MetadataAPIApiIsReadyRequest) (*IsAlive200Response, *http.Response, error) } -// MetadataApiService MetadataApi service -type MetadataApiService service +// MetadataAPIService MetadataAPI service +type MetadataAPIService service -type MetadataApiApiGetVersionRequest struct { +type MetadataAPIApiGetVersionRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiApiGetVersionRequest) Execute() (*GetVersion200Response, *http.Response, error) { +func (r MetadataAPIApiGetVersionRequest) Execute() (*GetVersion200Response, *http.Response, error) { return r.ApiService.GetVersionExecute(r) } @@ -111,10 +111,10 @@ If the service supports TLS Edge Termination, this endpoint does not require the Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return MetadataApiApiGetVersionRequest + - @return MetadataAPIApiGetVersionRequest */ -func (a *MetadataApiService) GetVersion(ctx context.Context) MetadataApiApiGetVersionRequest { - return MetadataApiApiGetVersionRequest{ +func (a *MetadataAPIService) GetVersion(ctx context.Context) MetadataAPIApiGetVersionRequest { + return MetadataAPIApiGetVersionRequest{ ApiService: a, ctx: ctx, } @@ -124,7 +124,7 @@ func (a *MetadataApiService) GetVersion(ctx context.Context) MetadataApiApiGetVe * Execute executes the request * @return GetVersion200Response */ -func (a *MetadataApiService) GetVersionExecute(r MetadataApiApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) { +func (a *MetadataAPIService) GetVersionExecute(r MetadataAPIApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -134,7 +134,7 @@ func (a *MetadataApiService) GetVersionExecute(r MetadataApiApiGetVersionRequest localVarReturnValue *GetVersion200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.GetVersion") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataAPIService.GetVersion") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -199,12 +199,12 @@ func (a *MetadataApiService) GetVersionExecute(r MetadataApiApiGetVersionRequest return localVarReturnValue, localVarHTTPResponse, nil } -type MetadataApiApiIsAliveRequest struct { +type MetadataAPIApiIsAliveRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiApiIsAliveRequest) Execute() (*IsAlive200Response, *http.Response, error) { +func (r MetadataAPIApiIsAliveRequest) Execute() (*IsAlive200Response, *http.Response, error) { return r.ApiService.IsAliveExecute(r) } @@ -220,10 +220,10 @@ If the service supports TLS Edge Termination, this endpoint does not require the Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return MetadataApiApiIsAliveRequest + - @return MetadataAPIApiIsAliveRequest */ -func (a *MetadataApiService) IsAlive(ctx context.Context) MetadataApiApiIsAliveRequest { - return MetadataApiApiIsAliveRequest{ +func (a *MetadataAPIService) IsAlive(ctx context.Context) MetadataAPIApiIsAliveRequest { + return MetadataAPIApiIsAliveRequest{ ApiService: a, ctx: ctx, } @@ -233,7 +233,7 @@ func (a *MetadataApiService) IsAlive(ctx context.Context) MetadataApiApiIsAliveR * Execute executes the request * @return IsAlive200Response */ -func (a *MetadataApiService) IsAliveExecute(r MetadataApiApiIsAliveRequest) (*IsAlive200Response, *http.Response, error) { +func (a *MetadataAPIService) IsAliveExecute(r MetadataAPIApiIsAliveRequest) (*IsAlive200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -243,7 +243,7 @@ func (a *MetadataApiService) IsAliveExecute(r MetadataApiApiIsAliveRequest) (*Is localVarReturnValue *IsAlive200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.IsAlive") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataAPIService.IsAlive") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -315,12 +315,12 @@ func (a *MetadataApiService) IsAliveExecute(r MetadataApiApiIsAliveRequest) (*Is return localVarReturnValue, localVarHTTPResponse, nil } -type MetadataApiApiIsReadyRequest struct { +type MetadataAPIApiIsReadyRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiApiIsReadyRequest) Execute() (*IsAlive200Response, *http.Response, error) { +func (r MetadataAPIApiIsReadyRequest) Execute() (*IsAlive200Response, *http.Response, error) { return r.ApiService.IsReadyExecute(r) } @@ -336,10 +336,10 @@ If the service supports TLS Edge Termination, this endpoint does not require the Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return MetadataApiApiIsReadyRequest + - @return MetadataAPIApiIsReadyRequest */ -func (a *MetadataApiService) IsReady(ctx context.Context) MetadataApiApiIsReadyRequest { - return MetadataApiApiIsReadyRequest{ +func (a *MetadataAPIService) IsReady(ctx context.Context) MetadataAPIApiIsReadyRequest { + return MetadataAPIApiIsReadyRequest{ ApiService: a, ctx: ctx, } @@ -349,7 +349,7 @@ func (a *MetadataApiService) IsReady(ctx context.Context) MetadataApiApiIsReadyR * Execute executes the request * @return IsAlive200Response */ -func (a *MetadataApiService) IsReadyExecute(r MetadataApiApiIsReadyRequest) (*IsAlive200Response, *http.Response, error) { +func (a *MetadataAPIService) IsReadyExecute(r MetadataAPIApiIsReadyRequest) (*IsAlive200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -359,7 +359,7 @@ func (a *MetadataApiService) IsReadyExecute(r MetadataApiApiIsReadyRequest) (*Is localVarReturnValue *IsAlive200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.IsReady") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataAPIService.IsReady") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/internal/client-go/client.go b/internal/client-go/client.go index 949a0e51ab35..14ee5d7619a6 100644 --- a/internal/client-go/client.go +++ b/internal/client-go/client.go @@ -49,13 +49,13 @@ type APIClient struct { // API Services - CourierApi CourierApi + CourierAPI CourierAPI - FrontendApi FrontendApi + FrontendAPI FrontendAPI - IdentityApi IdentityApi + IdentityAPI IdentityAPI - MetadataApi MetadataApi + MetadataAPI MetadataAPI } type service struct { @@ -74,10 +74,10 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services - c.CourierApi = (*CourierApiService)(&c.common) - c.FrontendApi = (*FrontendApiService)(&c.common) - c.IdentityApi = (*IdentityApiService)(&c.common) - c.MetadataApi = (*MetadataApiService)(&c.common) + c.CourierAPI = (*CourierAPIService)(&c.common) + c.FrontendAPI = (*FrontendAPIService)(&c.common) + c.IdentityAPI = (*IdentityAPIService)(&c.common) + c.MetadataAPI = (*MetadataAPIService)(&c.common) return c } diff --git a/internal/httpclient/.openapi-generator/FILES b/internal/httpclient/.openapi-generator/FILES index c573997505d8..5eaa392f30a9 100644 --- a/internal/httpclient/.openapi-generator/FILES +++ b/internal/httpclient/.openapi-generator/FILES @@ -21,7 +21,7 @@ docs/ContinueWithSettingsUi.md docs/ContinueWithSettingsUiFlow.md docs/ContinueWithVerificationUi.md docs/ContinueWithVerificationUiFlow.md -docs/CourierApi.md +docs/CourierAPI.md docs/CourierMessageStatus.md docs/CourierMessageType.md docs/CreateIdentityBody.md @@ -33,13 +33,13 @@ docs/ErrorBrowserLocationChangeRequired.md docs/ErrorFlowReplaced.md docs/ErrorGeneric.md docs/FlowError.md -docs/FrontendApi.md +docs/FrontendAPI.md docs/GenericError.md docs/GetVersion200Response.md docs/HealthNotReadyStatus.md docs/HealthStatus.md docs/Identity.md -docs/IdentityApi.md +docs/IdentityAPI.md docs/IdentityCredentials.md docs/IdentityCredentialsCode.md docs/IdentityCredentialsOidc.md @@ -62,7 +62,7 @@ docs/LoginFlowState.md docs/LogoutFlow.md docs/Message.md docs/MessageDispatch.md -docs/MetadataApi.md +docs/MetadataAPI.md docs/NeedsPrivilegedSessionError.md docs/OAuth2Client.md docs/OAuth2ConsentRequestOpenIDConnectContext.md diff --git a/internal/httpclient/README.md b/internal/httpclient/README.md index 85af88a0d079..6e2097d9a320 100644 --- a/internal/httpclient/README.md +++ b/internal/httpclient/README.md @@ -79,59 +79,59 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*CourierApi* | [**GetCourierMessage**](docs/CourierApi.md#getcouriermessage) | **Get** /admin/courier/messages/{id} | Get a Message -*CourierApi* | [**ListCourierMessages**](docs/CourierApi.md#listcouriermessages) | **Get** /admin/courier/messages | List Messages -*FrontendApi* | [**CreateBrowserLoginFlow**](docs/FrontendApi.md#createbrowserloginflow) | **Get** /self-service/login/browser | Create Login Flow for Browsers -*FrontendApi* | [**CreateBrowserLogoutFlow**](docs/FrontendApi.md#createbrowserlogoutflow) | **Get** /self-service/logout/browser | Create a Logout URL for Browsers -*FrontendApi* | [**CreateBrowserRecoveryFlow**](docs/FrontendApi.md#createbrowserrecoveryflow) | **Get** /self-service/recovery/browser | Create Recovery Flow for Browsers -*FrontendApi* | [**CreateBrowserRegistrationFlow**](docs/FrontendApi.md#createbrowserregistrationflow) | **Get** /self-service/registration/browser | Create Registration Flow for Browsers -*FrontendApi* | [**CreateBrowserSettingsFlow**](docs/FrontendApi.md#createbrowsersettingsflow) | **Get** /self-service/settings/browser | Create Settings Flow for Browsers -*FrontendApi* | [**CreateBrowserVerificationFlow**](docs/FrontendApi.md#createbrowserverificationflow) | **Get** /self-service/verification/browser | Create Verification Flow for Browser Clients -*FrontendApi* | [**CreateNativeLoginFlow**](docs/FrontendApi.md#createnativeloginflow) | **Get** /self-service/login/api | Create Login Flow for Native Apps -*FrontendApi* | [**CreateNativeRecoveryFlow**](docs/FrontendApi.md#createnativerecoveryflow) | **Get** /self-service/recovery/api | Create Recovery Flow for Native Apps -*FrontendApi* | [**CreateNativeRegistrationFlow**](docs/FrontendApi.md#createnativeregistrationflow) | **Get** /self-service/registration/api | Create Registration Flow for Native Apps -*FrontendApi* | [**CreateNativeSettingsFlow**](docs/FrontendApi.md#createnativesettingsflow) | **Get** /self-service/settings/api | Create Settings Flow for Native Apps -*FrontendApi* | [**CreateNativeVerificationFlow**](docs/FrontendApi.md#createnativeverificationflow) | **Get** /self-service/verification/api | Create Verification Flow for Native Apps -*FrontendApi* | [**DisableMyOtherSessions**](docs/FrontendApi.md#disablemyothersessions) | **Delete** /sessions | Disable my other sessions -*FrontendApi* | [**DisableMySession**](docs/FrontendApi.md#disablemysession) | **Delete** /sessions/{id} | Disable one of my sessions -*FrontendApi* | [**ExchangeSessionToken**](docs/FrontendApi.md#exchangesessiontoken) | **Get** /sessions/token-exchange | Exchange Session Token -*FrontendApi* | [**GetFlowError**](docs/FrontendApi.md#getflowerror) | **Get** /self-service/errors | Get User-Flow Errors -*FrontendApi* | [**GetLoginFlow**](docs/FrontendApi.md#getloginflow) | **Get** /self-service/login/flows | Get Login Flow -*FrontendApi* | [**GetRecoveryFlow**](docs/FrontendApi.md#getrecoveryflow) | **Get** /self-service/recovery/flows | Get Recovery Flow -*FrontendApi* | [**GetRegistrationFlow**](docs/FrontendApi.md#getregistrationflow) | **Get** /self-service/registration/flows | Get Registration Flow -*FrontendApi* | [**GetSettingsFlow**](docs/FrontendApi.md#getsettingsflow) | **Get** /self-service/settings/flows | Get Settings Flow -*FrontendApi* | [**GetVerificationFlow**](docs/FrontendApi.md#getverificationflow) | **Get** /self-service/verification/flows | Get Verification Flow -*FrontendApi* | [**GetWebAuthnJavaScript**](docs/FrontendApi.md#getwebauthnjavascript) | **Get** /.well-known/ory/webauthn.js | Get WebAuthn JavaScript -*FrontendApi* | [**ListMySessions**](docs/FrontendApi.md#listmysessions) | **Get** /sessions | Get My Active Sessions -*FrontendApi* | [**PerformNativeLogout**](docs/FrontendApi.md#performnativelogout) | **Delete** /self-service/logout/api | Perform Logout for Native Apps -*FrontendApi* | [**ToSession**](docs/FrontendApi.md#tosession) | **Get** /sessions/whoami | Check Who the Current HTTP Session Belongs To -*FrontendApi* | [**UpdateLoginFlow**](docs/FrontendApi.md#updateloginflow) | **Post** /self-service/login | Submit a Login Flow -*FrontendApi* | [**UpdateLogoutFlow**](docs/FrontendApi.md#updatelogoutflow) | **Get** /self-service/logout | Update Logout Flow -*FrontendApi* | [**UpdateRecoveryFlow**](docs/FrontendApi.md#updaterecoveryflow) | **Post** /self-service/recovery | Update Recovery Flow -*FrontendApi* | [**UpdateRegistrationFlow**](docs/FrontendApi.md#updateregistrationflow) | **Post** /self-service/registration | Update Registration Flow -*FrontendApi* | [**UpdateSettingsFlow**](docs/FrontendApi.md#updatesettingsflow) | **Post** /self-service/settings | Complete Settings Flow -*FrontendApi* | [**UpdateVerificationFlow**](docs/FrontendApi.md#updateverificationflow) | **Post** /self-service/verification | Complete Verification Flow -*IdentityApi* | [**BatchPatchIdentities**](docs/IdentityApi.md#batchpatchidentities) | **Patch** /admin/identities | Create multiple identities -*IdentityApi* | [**CreateIdentity**](docs/IdentityApi.md#createidentity) | **Post** /admin/identities | Create an Identity -*IdentityApi* | [**CreateRecoveryCodeForIdentity**](docs/IdentityApi.md#createrecoverycodeforidentity) | **Post** /admin/recovery/code | Create a Recovery Code -*IdentityApi* | [**CreateRecoveryLinkForIdentity**](docs/IdentityApi.md#createrecoverylinkforidentity) | **Post** /admin/recovery/link | Create a Recovery Link -*IdentityApi* | [**DeleteIdentity**](docs/IdentityApi.md#deleteidentity) | **Delete** /admin/identities/{id} | Delete an Identity -*IdentityApi* | [**DeleteIdentityCredentials**](docs/IdentityApi.md#deleteidentitycredentials) | **Delete** /admin/identities/{id}/credentials/{type} | Delete a credential for a specific identity -*IdentityApi* | [**DeleteIdentitySessions**](docs/IdentityApi.md#deleteidentitysessions) | **Delete** /admin/identities/{id}/sessions | Delete & Invalidate an Identity's Sessions -*IdentityApi* | [**DisableSession**](docs/IdentityApi.md#disablesession) | **Delete** /admin/sessions/{id} | Deactivate a Session -*IdentityApi* | [**ExtendSession**](docs/IdentityApi.md#extendsession) | **Patch** /admin/sessions/{id}/extend | Extend a Session -*IdentityApi* | [**GetIdentity**](docs/IdentityApi.md#getidentity) | **Get** /admin/identities/{id} | Get an Identity -*IdentityApi* | [**GetIdentitySchema**](docs/IdentityApi.md#getidentityschema) | **Get** /schemas/{id} | Get Identity JSON Schema -*IdentityApi* | [**GetSession**](docs/IdentityApi.md#getsession) | **Get** /admin/sessions/{id} | Get Session -*IdentityApi* | [**ListIdentities**](docs/IdentityApi.md#listidentities) | **Get** /admin/identities | List Identities -*IdentityApi* | [**ListIdentitySchemas**](docs/IdentityApi.md#listidentityschemas) | **Get** /schemas | Get all Identity Schemas -*IdentityApi* | [**ListIdentitySessions**](docs/IdentityApi.md#listidentitysessions) | **Get** /admin/identities/{id}/sessions | List an Identity's Sessions -*IdentityApi* | [**ListSessions**](docs/IdentityApi.md#listsessions) | **Get** /admin/sessions | List All Sessions -*IdentityApi* | [**PatchIdentity**](docs/IdentityApi.md#patchidentity) | **Patch** /admin/identities/{id} | Patch an Identity -*IdentityApi* | [**UpdateIdentity**](docs/IdentityApi.md#updateidentity) | **Put** /admin/identities/{id} | Update an Identity -*MetadataApi* | [**GetVersion**](docs/MetadataApi.md#getversion) | **Get** /version | Return Running Software Version. -*MetadataApi* | [**IsAlive**](docs/MetadataApi.md#isalive) | **Get** /health/alive | Check HTTP Server Status -*MetadataApi* | [**IsReady**](docs/MetadataApi.md#isready) | **Get** /health/ready | Check HTTP Server and Database Status +*CourierAPI* | [**GetCourierMessage**](docs/CourierAPI.md#getcouriermessage) | **Get** /admin/courier/messages/{id} | Get a Message +*CourierAPI* | [**ListCourierMessages**](docs/CourierAPI.md#listcouriermessages) | **Get** /admin/courier/messages | List Messages +*FrontendAPI* | [**CreateBrowserLoginFlow**](docs/FrontendAPI.md#createbrowserloginflow) | **Get** /self-service/login/browser | Create Login Flow for Browsers +*FrontendAPI* | [**CreateBrowserLogoutFlow**](docs/FrontendAPI.md#createbrowserlogoutflow) | **Get** /self-service/logout/browser | Create a Logout URL for Browsers +*FrontendAPI* | [**CreateBrowserRecoveryFlow**](docs/FrontendAPI.md#createbrowserrecoveryflow) | **Get** /self-service/recovery/browser | Create Recovery Flow for Browsers +*FrontendAPI* | [**CreateBrowserRegistrationFlow**](docs/FrontendAPI.md#createbrowserregistrationflow) | **Get** /self-service/registration/browser | Create Registration Flow for Browsers +*FrontendAPI* | [**CreateBrowserSettingsFlow**](docs/FrontendAPI.md#createbrowsersettingsflow) | **Get** /self-service/settings/browser | Create Settings Flow for Browsers +*FrontendAPI* | [**CreateBrowserVerificationFlow**](docs/FrontendAPI.md#createbrowserverificationflow) | **Get** /self-service/verification/browser | Create Verification Flow for Browser Clients +*FrontendAPI* | [**CreateNativeLoginFlow**](docs/FrontendAPI.md#createnativeloginflow) | **Get** /self-service/login/api | Create Login Flow for Native Apps +*FrontendAPI* | [**CreateNativeRecoveryFlow**](docs/FrontendAPI.md#createnativerecoveryflow) | **Get** /self-service/recovery/api | Create Recovery Flow for Native Apps +*FrontendAPI* | [**CreateNativeRegistrationFlow**](docs/FrontendAPI.md#createnativeregistrationflow) | **Get** /self-service/registration/api | Create Registration Flow for Native Apps +*FrontendAPI* | [**CreateNativeSettingsFlow**](docs/FrontendAPI.md#createnativesettingsflow) | **Get** /self-service/settings/api | Create Settings Flow for Native Apps +*FrontendAPI* | [**CreateNativeVerificationFlow**](docs/FrontendAPI.md#createnativeverificationflow) | **Get** /self-service/verification/api | Create Verification Flow for Native Apps +*FrontendAPI* | [**DisableMyOtherSessions**](docs/FrontendAPI.md#disablemyothersessions) | **Delete** /sessions | Disable my other sessions +*FrontendAPI* | [**DisableMySession**](docs/FrontendAPI.md#disablemysession) | **Delete** /sessions/{id} | Disable one of my sessions +*FrontendAPI* | [**ExchangeSessionToken**](docs/FrontendAPI.md#exchangesessiontoken) | **Get** /sessions/token-exchange | Exchange Session Token +*FrontendAPI* | [**GetFlowError**](docs/FrontendAPI.md#getflowerror) | **Get** /self-service/errors | Get User-Flow Errors +*FrontendAPI* | [**GetLoginFlow**](docs/FrontendAPI.md#getloginflow) | **Get** /self-service/login/flows | Get Login Flow +*FrontendAPI* | [**GetRecoveryFlow**](docs/FrontendAPI.md#getrecoveryflow) | **Get** /self-service/recovery/flows | Get Recovery Flow +*FrontendAPI* | [**GetRegistrationFlow**](docs/FrontendAPI.md#getregistrationflow) | **Get** /self-service/registration/flows | Get Registration Flow +*FrontendAPI* | [**GetSettingsFlow**](docs/FrontendAPI.md#getsettingsflow) | **Get** /self-service/settings/flows | Get Settings Flow +*FrontendAPI* | [**GetVerificationFlow**](docs/FrontendAPI.md#getverificationflow) | **Get** /self-service/verification/flows | Get Verification Flow +*FrontendAPI* | [**GetWebAuthnJavaScript**](docs/FrontendAPI.md#getwebauthnjavascript) | **Get** /.well-known/ory/webauthn.js | Get WebAuthn JavaScript +*FrontendAPI* | [**ListMySessions**](docs/FrontendAPI.md#listmysessions) | **Get** /sessions | Get My Active Sessions +*FrontendAPI* | [**PerformNativeLogout**](docs/FrontendAPI.md#performnativelogout) | **Delete** /self-service/logout/api | Perform Logout for Native Apps +*FrontendAPI* | [**ToSession**](docs/FrontendAPI.md#tosession) | **Get** /sessions/whoami | Check Who the Current HTTP Session Belongs To +*FrontendAPI* | [**UpdateLoginFlow**](docs/FrontendAPI.md#updateloginflow) | **Post** /self-service/login | Submit a Login Flow +*FrontendAPI* | [**UpdateLogoutFlow**](docs/FrontendAPI.md#updatelogoutflow) | **Get** /self-service/logout | Update Logout Flow +*FrontendAPI* | [**UpdateRecoveryFlow**](docs/FrontendAPI.md#updaterecoveryflow) | **Post** /self-service/recovery | Update Recovery Flow +*FrontendAPI* | [**UpdateRegistrationFlow**](docs/FrontendAPI.md#updateregistrationflow) | **Post** /self-service/registration | Update Registration Flow +*FrontendAPI* | [**UpdateSettingsFlow**](docs/FrontendAPI.md#updatesettingsflow) | **Post** /self-service/settings | Complete Settings Flow +*FrontendAPI* | [**UpdateVerificationFlow**](docs/FrontendAPI.md#updateverificationflow) | **Post** /self-service/verification | Complete Verification Flow +*IdentityAPI* | [**BatchPatchIdentities**](docs/IdentityAPI.md#batchpatchidentities) | **Patch** /admin/identities | Create multiple identities +*IdentityAPI* | [**CreateIdentity**](docs/IdentityAPI.md#createidentity) | **Post** /admin/identities | Create an Identity +*IdentityAPI* | [**CreateRecoveryCodeForIdentity**](docs/IdentityAPI.md#createrecoverycodeforidentity) | **Post** /admin/recovery/code | Create a Recovery Code +*IdentityAPI* | [**CreateRecoveryLinkForIdentity**](docs/IdentityAPI.md#createrecoverylinkforidentity) | **Post** /admin/recovery/link | Create a Recovery Link +*IdentityAPI* | [**DeleteIdentity**](docs/IdentityAPI.md#deleteidentity) | **Delete** /admin/identities/{id} | Delete an Identity +*IdentityAPI* | [**DeleteIdentityCredentials**](docs/IdentityAPI.md#deleteidentitycredentials) | **Delete** /admin/identities/{id}/credentials/{type} | Delete a credential for a specific identity +*IdentityAPI* | [**DeleteIdentitySessions**](docs/IdentityAPI.md#deleteidentitysessions) | **Delete** /admin/identities/{id}/sessions | Delete & Invalidate an Identity's Sessions +*IdentityAPI* | [**DisableSession**](docs/IdentityAPI.md#disablesession) | **Delete** /admin/sessions/{id} | Deactivate a Session +*IdentityAPI* | [**ExtendSession**](docs/IdentityAPI.md#extendsession) | **Patch** /admin/sessions/{id}/extend | Extend a Session +*IdentityAPI* | [**GetIdentity**](docs/IdentityAPI.md#getidentity) | **Get** /admin/identities/{id} | Get an Identity +*IdentityAPI* | [**GetIdentitySchema**](docs/IdentityAPI.md#getidentityschema) | **Get** /schemas/{id} | Get Identity JSON Schema +*IdentityAPI* | [**GetSession**](docs/IdentityAPI.md#getsession) | **Get** /admin/sessions/{id} | Get Session +*IdentityAPI* | [**ListIdentities**](docs/IdentityAPI.md#listidentities) | **Get** /admin/identities | List Identities +*IdentityAPI* | [**ListIdentitySchemas**](docs/IdentityAPI.md#listidentityschemas) | **Get** /schemas | Get all Identity Schemas +*IdentityAPI* | [**ListIdentitySessions**](docs/IdentityAPI.md#listidentitysessions) | **Get** /admin/identities/{id}/sessions | List an Identity's Sessions +*IdentityAPI* | [**ListSessions**](docs/IdentityAPI.md#listsessions) | **Get** /admin/sessions | List All Sessions +*IdentityAPI* | [**PatchIdentity**](docs/IdentityAPI.md#patchidentity) | **Patch** /admin/identities/{id} | Patch an Identity +*IdentityAPI* | [**UpdateIdentity**](docs/IdentityAPI.md#updateidentity) | **Put** /admin/identities/{id} | Update an Identity +*MetadataAPI* | [**GetVersion**](docs/MetadataAPI.md#getversion) | **Get** /version | Return Running Software Version. +*MetadataAPI* | [**IsAlive**](docs/MetadataAPI.md#isalive) | **Get** /health/alive | Check HTTP Server Status +*MetadataAPI* | [**IsReady**](docs/MetadataAPI.md#isready) | **Get** /health/ready | Check HTTP Server and Database Status ## Documentation For Models diff --git a/internal/httpclient/api_courier.go b/internal/httpclient/api_courier.go index 91bcc08025eb..36f10d0a6281 100644 --- a/internal/httpclient/api_courier.go +++ b/internal/httpclient/api_courier.go @@ -25,48 +25,48 @@ var ( _ context.Context ) -type CourierApi interface { +type CourierAPI interface { /* * GetCourierMessage Get a Message * Gets a specific messages by the given ID. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id MessageID is the ID of the message. - * @return CourierApiApiGetCourierMessageRequest + * @return CourierAPIApiGetCourierMessageRequest */ - GetCourierMessage(ctx context.Context, id string) CourierApiApiGetCourierMessageRequest + GetCourierMessage(ctx context.Context, id string) CourierAPIApiGetCourierMessageRequest /* * GetCourierMessageExecute executes the request * @return Message */ - GetCourierMessageExecute(r CourierApiApiGetCourierMessageRequest) (*Message, *http.Response, error) + GetCourierMessageExecute(r CourierAPIApiGetCourierMessageRequest) (*Message, *http.Response, error) /* * ListCourierMessages List Messages * Lists all messages by given status and recipient. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return CourierApiApiListCourierMessagesRequest + * @return CourierAPIApiListCourierMessagesRequest */ - ListCourierMessages(ctx context.Context) CourierApiApiListCourierMessagesRequest + ListCourierMessages(ctx context.Context) CourierAPIApiListCourierMessagesRequest /* * ListCourierMessagesExecute executes the request * @return []Message */ - ListCourierMessagesExecute(r CourierApiApiListCourierMessagesRequest) ([]Message, *http.Response, error) + ListCourierMessagesExecute(r CourierAPIApiListCourierMessagesRequest) ([]Message, *http.Response, error) } -// CourierApiService CourierApi service -type CourierApiService service +// CourierAPIService CourierAPI service +type CourierAPIService service -type CourierApiApiGetCourierMessageRequest struct { +type CourierAPIApiGetCourierMessageRequest struct { ctx context.Context - ApiService CourierApi + ApiService CourierAPI id string } -func (r CourierApiApiGetCourierMessageRequest) Execute() (*Message, *http.Response, error) { +func (r CourierAPIApiGetCourierMessageRequest) Execute() (*Message, *http.Response, error) { return r.ApiService.GetCourierMessageExecute(r) } @@ -75,10 +75,10 @@ func (r CourierApiApiGetCourierMessageRequest) Execute() (*Message, *http.Respon * Gets a specific messages by the given ID. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id MessageID is the ID of the message. - * @return CourierApiApiGetCourierMessageRequest + * @return CourierAPIApiGetCourierMessageRequest */ -func (a *CourierApiService) GetCourierMessage(ctx context.Context, id string) CourierApiApiGetCourierMessageRequest { - return CourierApiApiGetCourierMessageRequest{ +func (a *CourierAPIService) GetCourierMessage(ctx context.Context, id string) CourierAPIApiGetCourierMessageRequest { + return CourierAPIApiGetCourierMessageRequest{ ApiService: a, ctx: ctx, id: id, @@ -89,7 +89,7 @@ func (a *CourierApiService) GetCourierMessage(ctx context.Context, id string) Co * Execute executes the request * @return Message */ -func (a *CourierApiService) GetCourierMessageExecute(r CourierApiApiGetCourierMessageRequest) (*Message, *http.Response, error) { +func (a *CourierAPIService) GetCourierMessageExecute(r CourierAPIApiGetCourierMessageRequest) (*Message, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -99,7 +99,7 @@ func (a *CourierApiService) GetCourierMessageExecute(r CourierApiApiGetCourierMe localVarReturnValue *Message ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CourierApiService.GetCourierMessage") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CourierAPIService.GetCourierMessage") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -196,33 +196,33 @@ func (a *CourierApiService) GetCourierMessageExecute(r CourierApiApiGetCourierMe return localVarReturnValue, localVarHTTPResponse, nil } -type CourierApiApiListCourierMessagesRequest struct { +type CourierAPIApiListCourierMessagesRequest struct { ctx context.Context - ApiService CourierApi + ApiService CourierAPI pageSize *int64 pageToken *string status *CourierMessageStatus recipient *string } -func (r CourierApiApiListCourierMessagesRequest) PageSize(pageSize int64) CourierApiApiListCourierMessagesRequest { +func (r CourierAPIApiListCourierMessagesRequest) PageSize(pageSize int64) CourierAPIApiListCourierMessagesRequest { r.pageSize = &pageSize return r } -func (r CourierApiApiListCourierMessagesRequest) PageToken(pageToken string) CourierApiApiListCourierMessagesRequest { +func (r CourierAPIApiListCourierMessagesRequest) PageToken(pageToken string) CourierAPIApiListCourierMessagesRequest { r.pageToken = &pageToken return r } -func (r CourierApiApiListCourierMessagesRequest) Status(status CourierMessageStatus) CourierApiApiListCourierMessagesRequest { +func (r CourierAPIApiListCourierMessagesRequest) Status(status CourierMessageStatus) CourierAPIApiListCourierMessagesRequest { r.status = &status return r } -func (r CourierApiApiListCourierMessagesRequest) Recipient(recipient string) CourierApiApiListCourierMessagesRequest { +func (r CourierAPIApiListCourierMessagesRequest) Recipient(recipient string) CourierAPIApiListCourierMessagesRequest { r.recipient = &recipient return r } -func (r CourierApiApiListCourierMessagesRequest) Execute() ([]Message, *http.Response, error) { +func (r CourierAPIApiListCourierMessagesRequest) Execute() ([]Message, *http.Response, error) { return r.ApiService.ListCourierMessagesExecute(r) } @@ -230,10 +230,10 @@ func (r CourierApiApiListCourierMessagesRequest) Execute() ([]Message, *http.Res * ListCourierMessages List Messages * Lists all messages by given status and recipient. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return CourierApiApiListCourierMessagesRequest + * @return CourierAPIApiListCourierMessagesRequest */ -func (a *CourierApiService) ListCourierMessages(ctx context.Context) CourierApiApiListCourierMessagesRequest { - return CourierApiApiListCourierMessagesRequest{ +func (a *CourierAPIService) ListCourierMessages(ctx context.Context) CourierAPIApiListCourierMessagesRequest { + return CourierAPIApiListCourierMessagesRequest{ ApiService: a, ctx: ctx, } @@ -243,7 +243,7 @@ func (a *CourierApiService) ListCourierMessages(ctx context.Context) CourierApiA * Execute executes the request * @return []Message */ -func (a *CourierApiService) ListCourierMessagesExecute(r CourierApiApiListCourierMessagesRequest) ([]Message, *http.Response, error) { +func (a *CourierAPIService) ListCourierMessagesExecute(r CourierAPIApiListCourierMessagesRequest) ([]Message, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -253,7 +253,7 @@ func (a *CourierApiService) ListCourierMessagesExecute(r CourierApiApiListCourie localVarReturnValue []Message ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CourierApiService.ListCourierMessages") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CourierAPIService.ListCourierMessages") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/internal/httpclient/api_frontend.go b/internal/httpclient/api_frontend.go index cfb87b55902a..762df5b59fe9 100644 --- a/internal/httpclient/api_frontend.go +++ b/internal/httpclient/api_frontend.go @@ -25,7 +25,7 @@ var ( _ context.Context ) -type FrontendApi interface { +type FrontendAPI interface { /* * CreateBrowserLoginFlow Create Login Flow for Browsers @@ -53,15 +53,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserLoginFlowRequest + * @return FrontendAPIApiCreateBrowserLoginFlowRequest */ - CreateBrowserLoginFlow(ctx context.Context) FrontendApiApiCreateBrowserLoginFlowRequest + CreateBrowserLoginFlow(ctx context.Context) FrontendAPIApiCreateBrowserLoginFlowRequest /* * CreateBrowserLoginFlowExecute executes the request * @return LoginFlow */ - CreateBrowserLoginFlowExecute(r FrontendApiApiCreateBrowserLoginFlowRequest) (*LoginFlow, *http.Response, error) + CreateBrowserLoginFlowExecute(r FrontendAPIApiCreateBrowserLoginFlowRequest) (*LoginFlow, *http.Response, error) /* * CreateBrowserLogoutFlow Create a Logout URL for Browsers @@ -76,15 +76,15 @@ type FrontendApi interface { When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserLogoutFlowRequest + * @return FrontendAPIApiCreateBrowserLogoutFlowRequest */ - CreateBrowserLogoutFlow(ctx context.Context) FrontendApiApiCreateBrowserLogoutFlowRequest + CreateBrowserLogoutFlow(ctx context.Context) FrontendAPIApiCreateBrowserLogoutFlowRequest /* * CreateBrowserLogoutFlowExecute executes the request * @return LogoutFlow */ - CreateBrowserLogoutFlowExecute(r FrontendApiApiCreateBrowserLogoutFlowRequest) (*LogoutFlow, *http.Response, error) + CreateBrowserLogoutFlowExecute(r FrontendAPIApiCreateBrowserLogoutFlowRequest) (*LogoutFlow, *http.Response, error) /* * CreateBrowserRecoveryFlow Create Recovery Flow for Browsers @@ -99,15 +99,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserRecoveryFlowRequest + * @return FrontendAPIApiCreateBrowserRecoveryFlowRequest */ - CreateBrowserRecoveryFlow(ctx context.Context) FrontendApiApiCreateBrowserRecoveryFlowRequest + CreateBrowserRecoveryFlow(ctx context.Context) FrontendAPIApiCreateBrowserRecoveryFlowRequest /* * CreateBrowserRecoveryFlowExecute executes the request * @return RecoveryFlow */ - CreateBrowserRecoveryFlowExecute(r FrontendApiApiCreateBrowserRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) + CreateBrowserRecoveryFlowExecute(r FrontendAPIApiCreateBrowserRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) /* * CreateBrowserRegistrationFlow Create Registration Flow for Browsers @@ -131,15 +131,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserRegistrationFlowRequest + * @return FrontendAPIApiCreateBrowserRegistrationFlowRequest */ - CreateBrowserRegistrationFlow(ctx context.Context) FrontendApiApiCreateBrowserRegistrationFlowRequest + CreateBrowserRegistrationFlow(ctx context.Context) FrontendAPIApiCreateBrowserRegistrationFlowRequest /* * CreateBrowserRegistrationFlowExecute executes the request * @return RegistrationFlow */ - CreateBrowserRegistrationFlowExecute(r FrontendApiApiCreateBrowserRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) + CreateBrowserRegistrationFlowExecute(r FrontendAPIApiCreateBrowserRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) /* * CreateBrowserSettingsFlow Create Settings Flow for Browsers @@ -170,15 +170,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserSettingsFlowRequest + * @return FrontendAPIApiCreateBrowserSettingsFlowRequest */ - CreateBrowserSettingsFlow(ctx context.Context) FrontendApiApiCreateBrowserSettingsFlowRequest + CreateBrowserSettingsFlow(ctx context.Context) FrontendAPIApiCreateBrowserSettingsFlowRequest /* * CreateBrowserSettingsFlowExecute executes the request * @return SettingsFlow */ - CreateBrowserSettingsFlowExecute(r FrontendApiApiCreateBrowserSettingsFlowRequest) (*SettingsFlow, *http.Response, error) + CreateBrowserSettingsFlowExecute(r FrontendAPIApiCreateBrowserSettingsFlowRequest) (*SettingsFlow, *http.Response, error) /* * CreateBrowserVerificationFlow Create Verification Flow for Browser Clients @@ -191,15 +191,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateBrowserVerificationFlowRequest + * @return FrontendAPIApiCreateBrowserVerificationFlowRequest */ - CreateBrowserVerificationFlow(ctx context.Context) FrontendApiApiCreateBrowserVerificationFlowRequest + CreateBrowserVerificationFlow(ctx context.Context) FrontendAPIApiCreateBrowserVerificationFlowRequest /* * CreateBrowserVerificationFlowExecute executes the request * @return VerificationFlow */ - CreateBrowserVerificationFlowExecute(r FrontendApiApiCreateBrowserVerificationFlowRequest) (*VerificationFlow, *http.Response, error) + CreateBrowserVerificationFlowExecute(r FrontendAPIApiCreateBrowserVerificationFlowRequest) (*VerificationFlow, *http.Response, error) /* * CreateNativeLoginFlow Create Login Flow for Native Apps @@ -224,15 +224,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeLoginFlowRequest + * @return FrontendAPIApiCreateNativeLoginFlowRequest */ - CreateNativeLoginFlow(ctx context.Context) FrontendApiApiCreateNativeLoginFlowRequest + CreateNativeLoginFlow(ctx context.Context) FrontendAPIApiCreateNativeLoginFlowRequest /* * CreateNativeLoginFlowExecute executes the request * @return LoginFlow */ - CreateNativeLoginFlowExecute(r FrontendApiApiCreateNativeLoginFlowRequest) (*LoginFlow, *http.Response, error) + CreateNativeLoginFlowExecute(r FrontendAPIApiCreateNativeLoginFlowRequest) (*LoginFlow, *http.Response, error) /* * CreateNativeRecoveryFlow Create Recovery Flow for Native Apps @@ -250,15 +250,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeRecoveryFlowRequest + * @return FrontendAPIApiCreateNativeRecoveryFlowRequest */ - CreateNativeRecoveryFlow(ctx context.Context) FrontendApiApiCreateNativeRecoveryFlowRequest + CreateNativeRecoveryFlow(ctx context.Context) FrontendAPIApiCreateNativeRecoveryFlowRequest /* * CreateNativeRecoveryFlowExecute executes the request * @return RecoveryFlow */ - CreateNativeRecoveryFlowExecute(r FrontendApiApiCreateNativeRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) + CreateNativeRecoveryFlowExecute(r FrontendAPIApiCreateNativeRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) /* * CreateNativeRegistrationFlow Create Registration Flow for Native Apps @@ -282,15 +282,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeRegistrationFlowRequest + * @return FrontendAPIApiCreateNativeRegistrationFlowRequest */ - CreateNativeRegistrationFlow(ctx context.Context) FrontendApiApiCreateNativeRegistrationFlowRequest + CreateNativeRegistrationFlow(ctx context.Context) FrontendAPIApiCreateNativeRegistrationFlowRequest /* * CreateNativeRegistrationFlowExecute executes the request * @return RegistrationFlow */ - CreateNativeRegistrationFlowExecute(r FrontendApiApiCreateNativeRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) + CreateNativeRegistrationFlowExecute(r FrontendAPIApiCreateNativeRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) /* * CreateNativeSettingsFlow Create Settings Flow for Native Apps @@ -317,15 +317,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeSettingsFlowRequest + * @return FrontendAPIApiCreateNativeSettingsFlowRequest */ - CreateNativeSettingsFlow(ctx context.Context) FrontendApiApiCreateNativeSettingsFlowRequest + CreateNativeSettingsFlow(ctx context.Context) FrontendAPIApiCreateNativeSettingsFlowRequest /* * CreateNativeSettingsFlowExecute executes the request * @return SettingsFlow */ - CreateNativeSettingsFlowExecute(r FrontendApiApiCreateNativeSettingsFlowRequest) (*SettingsFlow, *http.Response, error) + CreateNativeSettingsFlowExecute(r FrontendAPIApiCreateNativeSettingsFlowRequest) (*SettingsFlow, *http.Response, error) /* * CreateNativeVerificationFlow Create Verification Flow for Native Apps @@ -341,30 +341,30 @@ type FrontendApi interface { More information can be found at [Ory Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiCreateNativeVerificationFlowRequest + * @return FrontendAPIApiCreateNativeVerificationFlowRequest */ - CreateNativeVerificationFlow(ctx context.Context) FrontendApiApiCreateNativeVerificationFlowRequest + CreateNativeVerificationFlow(ctx context.Context) FrontendAPIApiCreateNativeVerificationFlowRequest /* * CreateNativeVerificationFlowExecute executes the request * @return VerificationFlow */ - CreateNativeVerificationFlowExecute(r FrontendApiApiCreateNativeVerificationFlowRequest) (*VerificationFlow, *http.Response, error) + CreateNativeVerificationFlowExecute(r FrontendAPIApiCreateNativeVerificationFlowRequest) (*VerificationFlow, *http.Response, error) /* * DisableMyOtherSessions Disable my other sessions * Calling this endpoint invalidates all except the current session that belong to the logged-in user. Session data are not deleted. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiDisableMyOtherSessionsRequest + * @return FrontendAPIApiDisableMyOtherSessionsRequest */ - DisableMyOtherSessions(ctx context.Context) FrontendApiApiDisableMyOtherSessionsRequest + DisableMyOtherSessions(ctx context.Context) FrontendAPIApiDisableMyOtherSessionsRequest /* * DisableMyOtherSessionsExecute executes the request * @return DeleteMySessionsCount */ - DisableMyOtherSessionsExecute(r FrontendApiApiDisableMyOtherSessionsRequest) (*DeleteMySessionsCount, *http.Response, error) + DisableMyOtherSessionsExecute(r FrontendAPIApiDisableMyOtherSessionsRequest) (*DeleteMySessionsCount, *http.Response, error) /* * DisableMySession Disable one of my sessions @@ -372,27 +372,27 @@ type FrontendApi interface { Session data are not deleted. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return FrontendApiApiDisableMySessionRequest + * @return FrontendAPIApiDisableMySessionRequest */ - DisableMySession(ctx context.Context, id string) FrontendApiApiDisableMySessionRequest + DisableMySession(ctx context.Context, id string) FrontendAPIApiDisableMySessionRequest /* * DisableMySessionExecute executes the request */ - DisableMySessionExecute(r FrontendApiApiDisableMySessionRequest) (*http.Response, error) + DisableMySessionExecute(r FrontendAPIApiDisableMySessionRequest) (*http.Response, error) /* * ExchangeSessionToken Exchange Session Token * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiExchangeSessionTokenRequest + * @return FrontendAPIApiExchangeSessionTokenRequest */ - ExchangeSessionToken(ctx context.Context) FrontendApiApiExchangeSessionTokenRequest + ExchangeSessionToken(ctx context.Context) FrontendAPIApiExchangeSessionTokenRequest /* * ExchangeSessionTokenExecute executes the request * @return SuccessfulNativeLogin */ - ExchangeSessionTokenExecute(r FrontendApiApiExchangeSessionTokenRequest) (*SuccessfulNativeLogin, *http.Response, error) + ExchangeSessionTokenExecute(r FrontendAPIApiExchangeSessionTokenRequest) (*SuccessfulNativeLogin, *http.Response, error) /* * GetFlowError Get User-Flow Errors @@ -404,15 +404,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetFlowErrorRequest + * @return FrontendAPIApiGetFlowErrorRequest */ - GetFlowError(ctx context.Context) FrontendApiApiGetFlowErrorRequest + GetFlowError(ctx context.Context) FrontendAPIApiGetFlowErrorRequest /* * GetFlowErrorExecute executes the request * @return FlowError */ - GetFlowErrorExecute(r FrontendApiApiGetFlowErrorRequest) (*FlowError, *http.Response, error) + GetFlowErrorExecute(r FrontendAPIApiGetFlowErrorRequest) (*FlowError, *http.Response, error) /* * GetLoginFlow Get Login Flow @@ -440,15 +440,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetLoginFlowRequest + * @return FrontendAPIApiGetLoginFlowRequest */ - GetLoginFlow(ctx context.Context) FrontendApiApiGetLoginFlowRequest + GetLoginFlow(ctx context.Context) FrontendAPIApiGetLoginFlowRequest /* * GetLoginFlowExecute executes the request * @return LoginFlow */ - GetLoginFlowExecute(r FrontendApiApiGetLoginFlowRequest) (*LoginFlow, *http.Response, error) + GetLoginFlowExecute(r FrontendAPIApiGetLoginFlowRequest) (*LoginFlow, *http.Response, error) /* * GetRecoveryFlow Get Recovery Flow @@ -471,15 +471,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetRecoveryFlowRequest + * @return FrontendAPIApiGetRecoveryFlowRequest */ - GetRecoveryFlow(ctx context.Context) FrontendApiApiGetRecoveryFlowRequest + GetRecoveryFlow(ctx context.Context) FrontendAPIApiGetRecoveryFlowRequest /* * GetRecoveryFlowExecute executes the request * @return RecoveryFlow */ - GetRecoveryFlowExecute(r FrontendApiApiGetRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) + GetRecoveryFlowExecute(r FrontendAPIApiGetRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) /* * GetRegistrationFlow Get Registration Flow @@ -507,15 +507,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetRegistrationFlowRequest + * @return FrontendAPIApiGetRegistrationFlowRequest */ - GetRegistrationFlow(ctx context.Context) FrontendApiApiGetRegistrationFlowRequest + GetRegistrationFlow(ctx context.Context) FrontendAPIApiGetRegistrationFlowRequest /* * GetRegistrationFlowExecute executes the request * @return RegistrationFlow */ - GetRegistrationFlowExecute(r FrontendApiApiGetRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) + GetRegistrationFlowExecute(r FrontendAPIApiGetRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) /* * GetSettingsFlow Get Settings Flow @@ -539,15 +539,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetSettingsFlowRequest + * @return FrontendAPIApiGetSettingsFlowRequest */ - GetSettingsFlow(ctx context.Context) FrontendApiApiGetSettingsFlowRequest + GetSettingsFlow(ctx context.Context) FrontendAPIApiGetSettingsFlowRequest /* * GetSettingsFlowExecute executes the request * @return SettingsFlow */ - GetSettingsFlowExecute(r FrontendApiApiGetSettingsFlowRequest) (*SettingsFlow, *http.Response, error) + GetSettingsFlowExecute(r FrontendAPIApiGetSettingsFlowRequest) (*SettingsFlow, *http.Response, error) /* * GetVerificationFlow Get Verification Flow @@ -570,15 +570,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetVerificationFlowRequest + * @return FrontendAPIApiGetVerificationFlowRequest */ - GetVerificationFlow(ctx context.Context) FrontendApiApiGetVerificationFlowRequest + GetVerificationFlow(ctx context.Context) FrontendAPIApiGetVerificationFlowRequest /* * GetVerificationFlowExecute executes the request * @return VerificationFlow */ - GetVerificationFlowExecute(r FrontendApiApiGetVerificationFlowRequest) (*VerificationFlow, *http.Response, error) + GetVerificationFlowExecute(r FrontendAPIApiGetVerificationFlowRequest) (*VerificationFlow, *http.Response, error) /* * GetWebAuthnJavaScript Get WebAuthn JavaScript @@ -592,30 +592,30 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiGetWebAuthnJavaScriptRequest + * @return FrontendAPIApiGetWebAuthnJavaScriptRequest */ - GetWebAuthnJavaScript(ctx context.Context) FrontendApiApiGetWebAuthnJavaScriptRequest + GetWebAuthnJavaScript(ctx context.Context) FrontendAPIApiGetWebAuthnJavaScriptRequest /* * GetWebAuthnJavaScriptExecute executes the request * @return string */ - GetWebAuthnJavaScriptExecute(r FrontendApiApiGetWebAuthnJavaScriptRequest) (string, *http.Response, error) + GetWebAuthnJavaScriptExecute(r FrontendAPIApiGetWebAuthnJavaScriptRequest) (string, *http.Response, error) /* * ListMySessions Get My Active Sessions * This endpoints returns all other active sessions that belong to the logged-in user. The current session can be retrieved by calling the `/sessions/whoami` endpoint. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiListMySessionsRequest + * @return FrontendAPIApiListMySessionsRequest */ - ListMySessions(ctx context.Context) FrontendApiApiListMySessionsRequest + ListMySessions(ctx context.Context) FrontendAPIApiListMySessionsRequest /* * ListMySessionsExecute executes the request * @return []Session */ - ListMySessionsExecute(r FrontendApiApiListMySessionsRequest) ([]Session, *http.Response, error) + ListMySessionsExecute(r FrontendAPIApiListMySessionsRequest) ([]Session, *http.Response, error) /* * PerformNativeLogout Perform Logout for Native Apps @@ -628,14 +628,14 @@ type FrontendApi interface { This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiPerformNativeLogoutRequest + * @return FrontendAPIApiPerformNativeLogoutRequest */ - PerformNativeLogout(ctx context.Context) FrontendApiApiPerformNativeLogoutRequest + PerformNativeLogout(ctx context.Context) FrontendAPIApiPerformNativeLogoutRequest /* * PerformNativeLogoutExecute executes the request */ - PerformNativeLogoutExecute(r FrontendApiApiPerformNativeLogoutRequest) (*http.Response, error) + PerformNativeLogoutExecute(r FrontendAPIApiPerformNativeLogoutRequest) (*http.Response, error) /* * ToSession Check Who the Current HTTP Session Belongs To @@ -699,15 +699,15 @@ type FrontendApi interface { `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiToSessionRequest + * @return FrontendAPIApiToSessionRequest */ - ToSession(ctx context.Context) FrontendApiApiToSessionRequest + ToSession(ctx context.Context) FrontendAPIApiToSessionRequest /* * ToSessionExecute executes the request * @return Session */ - ToSessionExecute(r FrontendApiApiToSessionRequest) (*Session, *http.Response, error) + ToSessionExecute(r FrontendAPIApiToSessionRequest) (*Session, *http.Response, error) /* * UpdateLoginFlow Submit a Login Flow @@ -739,15 +739,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateLoginFlowRequest + * @return FrontendAPIApiUpdateLoginFlowRequest */ - UpdateLoginFlow(ctx context.Context) FrontendApiApiUpdateLoginFlowRequest + UpdateLoginFlow(ctx context.Context) FrontendAPIApiUpdateLoginFlowRequest /* * UpdateLoginFlowExecute executes the request * @return SuccessfulNativeLogin */ - UpdateLoginFlowExecute(r FrontendApiApiUpdateLoginFlowRequest) (*SuccessfulNativeLogin, *http.Response, error) + UpdateLoginFlowExecute(r FrontendAPIApiUpdateLoginFlowRequest) (*SuccessfulNativeLogin, *http.Response, error) /* * UpdateLogoutFlow Update Logout Flow @@ -765,14 +765,14 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateLogoutFlowRequest + * @return FrontendAPIApiUpdateLogoutFlowRequest */ - UpdateLogoutFlow(ctx context.Context) FrontendApiApiUpdateLogoutFlowRequest + UpdateLogoutFlow(ctx context.Context) FrontendAPIApiUpdateLogoutFlowRequest /* * UpdateLogoutFlowExecute executes the request */ - UpdateLogoutFlowExecute(r FrontendApiApiUpdateLogoutFlowRequest) (*http.Response, error) + UpdateLogoutFlowExecute(r FrontendAPIApiUpdateLogoutFlowRequest) (*http.Response, error) /* * UpdateRecoveryFlow Update Recovery Flow @@ -793,15 +793,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateRecoveryFlowRequest + * @return FrontendAPIApiUpdateRecoveryFlowRequest */ - UpdateRecoveryFlow(ctx context.Context) FrontendApiApiUpdateRecoveryFlowRequest + UpdateRecoveryFlow(ctx context.Context) FrontendAPIApiUpdateRecoveryFlowRequest /* * UpdateRecoveryFlowExecute executes the request * @return RecoveryFlow */ - UpdateRecoveryFlowExecute(r FrontendApiApiUpdateRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) + UpdateRecoveryFlowExecute(r FrontendAPIApiUpdateRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) /* * UpdateRegistrationFlow Update Registration Flow @@ -834,15 +834,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateRegistrationFlowRequest + * @return FrontendAPIApiUpdateRegistrationFlowRequest */ - UpdateRegistrationFlow(ctx context.Context) FrontendApiApiUpdateRegistrationFlowRequest + UpdateRegistrationFlow(ctx context.Context) FrontendAPIApiUpdateRegistrationFlowRequest /* * UpdateRegistrationFlowExecute executes the request * @return SuccessfulNativeRegistration */ - UpdateRegistrationFlowExecute(r FrontendApiApiUpdateRegistrationFlowRequest) (*SuccessfulNativeRegistration, *http.Response, error) + UpdateRegistrationFlowExecute(r FrontendAPIApiUpdateRegistrationFlowRequest) (*SuccessfulNativeRegistration, *http.Response, error) /* * UpdateSettingsFlow Complete Settings Flow @@ -890,15 +890,15 @@ type FrontendApi interface { More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateSettingsFlowRequest + * @return FrontendAPIApiUpdateSettingsFlowRequest */ - UpdateSettingsFlow(ctx context.Context) FrontendApiApiUpdateSettingsFlowRequest + UpdateSettingsFlow(ctx context.Context) FrontendAPIApiUpdateSettingsFlowRequest /* * UpdateSettingsFlowExecute executes the request * @return SettingsFlow */ - UpdateSettingsFlowExecute(r FrontendApiApiUpdateSettingsFlowRequest) (*SettingsFlow, *http.Response, error) + UpdateSettingsFlowExecute(r FrontendAPIApiUpdateSettingsFlowRequest) (*SettingsFlow, *http.Response, error) /* * UpdateVerificationFlow Complete Verification Flow @@ -919,23 +919,23 @@ type FrontendApi interface { More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiUpdateVerificationFlowRequest + * @return FrontendAPIApiUpdateVerificationFlowRequest */ - UpdateVerificationFlow(ctx context.Context) FrontendApiApiUpdateVerificationFlowRequest + UpdateVerificationFlow(ctx context.Context) FrontendAPIApiUpdateVerificationFlowRequest /* * UpdateVerificationFlowExecute executes the request * @return VerificationFlow */ - UpdateVerificationFlowExecute(r FrontendApiApiUpdateVerificationFlowRequest) (*VerificationFlow, *http.Response, error) + UpdateVerificationFlowExecute(r FrontendAPIApiUpdateVerificationFlowRequest) (*VerificationFlow, *http.Response, error) } -// FrontendApiService FrontendApi service -type FrontendApiService service +// FrontendAPIService FrontendAPI service +type FrontendAPIService service -type FrontendApiApiCreateBrowserLoginFlowRequest struct { +type FrontendAPIApiCreateBrowserLoginFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI refresh *bool aal *string returnTo *string @@ -945,36 +945,36 @@ type FrontendApiApiCreateBrowserLoginFlowRequest struct { via *string } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Refresh(refresh bool) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Refresh(refresh bool) FrontendAPIApiCreateBrowserLoginFlowRequest { r.refresh = &refresh return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Aal(aal string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Aal(aal string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.aal = &aal return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Cookie(cookie string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Cookie(cookie string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) LoginChallenge(loginChallenge string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) LoginChallenge(loginChallenge string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.loginChallenge = &loginChallenge return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Organization(organization string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Organization(organization string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.organization = &organization return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Via(via string) FrontendApiApiCreateBrowserLoginFlowRequest { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Via(via string) FrontendAPIApiCreateBrowserLoginFlowRequest { r.via = &via return r } -func (r FrontendApiApiCreateBrowserLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { return r.ApiService.CreateBrowserLoginFlowExecute(r) } @@ -1005,10 +1005,10 @@ This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Fi More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserLoginFlowRequest + - @return FrontendAPIApiCreateBrowserLoginFlowRequest */ -func (a *FrontendApiService) CreateBrowserLoginFlow(ctx context.Context) FrontendApiApiCreateBrowserLoginFlowRequest { - return FrontendApiApiCreateBrowserLoginFlowRequest{ +func (a *FrontendAPIService) CreateBrowserLoginFlow(ctx context.Context) FrontendAPIApiCreateBrowserLoginFlowRequest { + return FrontendAPIApiCreateBrowserLoginFlowRequest{ ApiService: a, ctx: ctx, } @@ -1018,7 +1018,7 @@ func (a *FrontendApiService) CreateBrowserLoginFlow(ctx context.Context) Fronten * Execute executes the request * @return LoginFlow */ -func (a *FrontendApiService) CreateBrowserLoginFlowExecute(r FrontendApiApiCreateBrowserLoginFlowRequest) (*LoginFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserLoginFlowExecute(r FrontendAPIApiCreateBrowserLoginFlowRequest) (*LoginFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1028,7 +1028,7 @@ func (a *FrontendApiService) CreateBrowserLoginFlowExecute(r FrontendApiApiCreat localVarReturnValue *LoginFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserLoginFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserLoginFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1131,23 +1131,23 @@ func (a *FrontendApiService) CreateBrowserLoginFlowExecute(r FrontendApiApiCreat return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserLogoutFlowRequest struct { +type FrontendAPIApiCreateBrowserLogoutFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI cookie *string returnTo *string } -func (r FrontendApiApiCreateBrowserLogoutFlowRequest) Cookie(cookie string) FrontendApiApiCreateBrowserLogoutFlowRequest { +func (r FrontendAPIApiCreateBrowserLogoutFlowRequest) Cookie(cookie string) FrontendAPIApiCreateBrowserLogoutFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiCreateBrowserLogoutFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserLogoutFlowRequest { +func (r FrontendAPIApiCreateBrowserLogoutFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserLogoutFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserLogoutFlowRequest) Execute() (*LogoutFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserLogoutFlowRequest) Execute() (*LogoutFlow, *http.Response, error) { return r.ApiService.CreateBrowserLogoutFlowExecute(r) } @@ -1164,10 +1164,10 @@ a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserLogoutFlowRequest + - @return FrontendAPIApiCreateBrowserLogoutFlowRequest */ -func (a *FrontendApiService) CreateBrowserLogoutFlow(ctx context.Context) FrontendApiApiCreateBrowserLogoutFlowRequest { - return FrontendApiApiCreateBrowserLogoutFlowRequest{ +func (a *FrontendAPIService) CreateBrowserLogoutFlow(ctx context.Context) FrontendAPIApiCreateBrowserLogoutFlowRequest { + return FrontendAPIApiCreateBrowserLogoutFlowRequest{ ApiService: a, ctx: ctx, } @@ -1177,7 +1177,7 @@ func (a *FrontendApiService) CreateBrowserLogoutFlow(ctx context.Context) Fronte * Execute executes the request * @return LogoutFlow */ -func (a *FrontendApiService) CreateBrowserLogoutFlowExecute(r FrontendApiApiCreateBrowserLogoutFlowRequest) (*LogoutFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserLogoutFlowExecute(r FrontendAPIApiCreateBrowserLogoutFlowRequest) (*LogoutFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1187,7 +1187,7 @@ func (a *FrontendApiService) CreateBrowserLogoutFlowExecute(r FrontendApiApiCrea localVarReturnValue *LogoutFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserLogoutFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserLogoutFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1287,18 +1287,18 @@ func (a *FrontendApiService) CreateBrowserLogoutFlowExecute(r FrontendApiApiCrea return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserRecoveryFlowRequest struct { +type FrontendAPIApiCreateBrowserRecoveryFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnTo *string } -func (r FrontendApiApiCreateBrowserRecoveryFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserRecoveryFlowRequest { +func (r FrontendAPIApiCreateBrowserRecoveryFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserRecoveryFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { return r.ApiService.CreateBrowserRecoveryFlowExecute(r) } @@ -1316,10 +1316,10 @@ This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Fi More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserRecoveryFlowRequest + - @return FrontendAPIApiCreateBrowserRecoveryFlowRequest */ -func (a *FrontendApiService) CreateBrowserRecoveryFlow(ctx context.Context) FrontendApiApiCreateBrowserRecoveryFlowRequest { - return FrontendApiApiCreateBrowserRecoveryFlowRequest{ +func (a *FrontendAPIService) CreateBrowserRecoveryFlow(ctx context.Context) FrontendAPIApiCreateBrowserRecoveryFlowRequest { + return FrontendAPIApiCreateBrowserRecoveryFlowRequest{ ApiService: a, ctx: ctx, } @@ -1329,7 +1329,7 @@ func (a *FrontendApiService) CreateBrowserRecoveryFlow(ctx context.Context) Fron * Execute executes the request * @return RecoveryFlow */ -func (a *FrontendApiService) CreateBrowserRecoveryFlowExecute(r FrontendApiApiCreateBrowserRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserRecoveryFlowExecute(r FrontendAPIApiCreateBrowserRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1339,7 +1339,7 @@ func (a *FrontendApiService) CreateBrowserRecoveryFlowExecute(r FrontendApiApiCr localVarReturnValue *RecoveryFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserRecoveryFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserRecoveryFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1424,33 +1424,33 @@ func (a *FrontendApiService) CreateBrowserRecoveryFlowExecute(r FrontendApiApiCr return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserRegistrationFlowRequest struct { +type FrontendAPIApiCreateBrowserRegistrationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnTo *string loginChallenge *string afterVerificationReturnTo *string organization *string } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserRegistrationFlowRequest { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserRegistrationFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) LoginChallenge(loginChallenge string) FrontendApiApiCreateBrowserRegistrationFlowRequest { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) LoginChallenge(loginChallenge string) FrontendAPIApiCreateBrowserRegistrationFlowRequest { r.loginChallenge = &loginChallenge return r } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) AfterVerificationReturnTo(afterVerificationReturnTo string) FrontendApiApiCreateBrowserRegistrationFlowRequest { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) AfterVerificationReturnTo(afterVerificationReturnTo string) FrontendAPIApiCreateBrowserRegistrationFlowRequest { r.afterVerificationReturnTo = &afterVerificationReturnTo return r } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) Organization(organization string) FrontendApiApiCreateBrowserRegistrationFlowRequest { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) Organization(organization string) FrontendAPIApiCreateBrowserRegistrationFlowRequest { r.organization = &organization return r } -func (r FrontendApiApiCreateBrowserRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { return r.ApiService.CreateBrowserRegistrationFlowExecute(r) } @@ -1477,10 +1477,10 @@ This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Fi More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserRegistrationFlowRequest + - @return FrontendAPIApiCreateBrowserRegistrationFlowRequest */ -func (a *FrontendApiService) CreateBrowserRegistrationFlow(ctx context.Context) FrontendApiApiCreateBrowserRegistrationFlowRequest { - return FrontendApiApiCreateBrowserRegistrationFlowRequest{ +func (a *FrontendAPIService) CreateBrowserRegistrationFlow(ctx context.Context) FrontendAPIApiCreateBrowserRegistrationFlowRequest { + return FrontendAPIApiCreateBrowserRegistrationFlowRequest{ ApiService: a, ctx: ctx, } @@ -1490,7 +1490,7 @@ func (a *FrontendApiService) CreateBrowserRegistrationFlow(ctx context.Context) * Execute executes the request * @return RegistrationFlow */ -func (a *FrontendApiService) CreateBrowserRegistrationFlowExecute(r FrontendApiApiCreateBrowserRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserRegistrationFlowExecute(r FrontendAPIApiCreateBrowserRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1500,7 +1500,7 @@ func (a *FrontendApiService) CreateBrowserRegistrationFlowExecute(r FrontendApiA localVarReturnValue *RegistrationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserRegistrationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserRegistrationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1584,23 +1584,23 @@ func (a *FrontendApiService) CreateBrowserRegistrationFlowExecute(r FrontendApiA return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserSettingsFlowRequest struct { +type FrontendAPIApiCreateBrowserSettingsFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnTo *string cookie *string } -func (r FrontendApiApiCreateBrowserSettingsFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserSettingsFlowRequest { +func (r FrontendAPIApiCreateBrowserSettingsFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserSettingsFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserSettingsFlowRequest) Cookie(cookie string) FrontendApiApiCreateBrowserSettingsFlowRequest { +func (r FrontendAPIApiCreateBrowserSettingsFlowRequest) Cookie(cookie string) FrontendAPIApiCreateBrowserSettingsFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiCreateBrowserSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { return r.ApiService.CreateBrowserSettingsFlowExecute(r) } @@ -1634,10 +1634,10 @@ This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Fi More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserSettingsFlowRequest + - @return FrontendAPIApiCreateBrowserSettingsFlowRequest */ -func (a *FrontendApiService) CreateBrowserSettingsFlow(ctx context.Context) FrontendApiApiCreateBrowserSettingsFlowRequest { - return FrontendApiApiCreateBrowserSettingsFlowRequest{ +func (a *FrontendAPIService) CreateBrowserSettingsFlow(ctx context.Context) FrontendAPIApiCreateBrowserSettingsFlowRequest { + return FrontendAPIApiCreateBrowserSettingsFlowRequest{ ApiService: a, ctx: ctx, } @@ -1647,7 +1647,7 @@ func (a *FrontendApiService) CreateBrowserSettingsFlow(ctx context.Context) Fron * Execute executes the request * @return SettingsFlow */ -func (a *FrontendApiService) CreateBrowserSettingsFlowExecute(r FrontendApiApiCreateBrowserSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserSettingsFlowExecute(r FrontendAPIApiCreateBrowserSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1657,7 +1657,7 @@ func (a *FrontendApiService) CreateBrowserSettingsFlowExecute(r FrontendApiApiCr localVarReturnValue *SettingsFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserSettingsFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserSettingsFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1765,18 +1765,18 @@ func (a *FrontendApiService) CreateBrowserSettingsFlowExecute(r FrontendApiApiCr return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateBrowserVerificationFlowRequest struct { +type FrontendAPIApiCreateBrowserVerificationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnTo *string } -func (r FrontendApiApiCreateBrowserVerificationFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateBrowserVerificationFlowRequest { +func (r FrontendAPIApiCreateBrowserVerificationFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateBrowserVerificationFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateBrowserVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { +func (r FrontendAPIApiCreateBrowserVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { return r.ApiService.CreateBrowserVerificationFlowExecute(r) } @@ -1792,10 +1792,10 @@ This endpoint is NOT INTENDED for API clients and only works with browsers (Chro More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateBrowserVerificationFlowRequest + - @return FrontendAPIApiCreateBrowserVerificationFlowRequest */ -func (a *FrontendApiService) CreateBrowserVerificationFlow(ctx context.Context) FrontendApiApiCreateBrowserVerificationFlowRequest { - return FrontendApiApiCreateBrowserVerificationFlowRequest{ +func (a *FrontendAPIService) CreateBrowserVerificationFlow(ctx context.Context) FrontendAPIApiCreateBrowserVerificationFlowRequest { + return FrontendAPIApiCreateBrowserVerificationFlowRequest{ ApiService: a, ctx: ctx, } @@ -1805,7 +1805,7 @@ func (a *FrontendApiService) CreateBrowserVerificationFlow(ctx context.Context) * Execute executes the request * @return VerificationFlow */ -func (a *FrontendApiService) CreateBrowserVerificationFlowExecute(r FrontendApiApiCreateBrowserVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateBrowserVerificationFlowExecute(r FrontendAPIApiCreateBrowserVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1815,7 +1815,7 @@ func (a *FrontendApiService) CreateBrowserVerificationFlowExecute(r FrontendApiA localVarReturnValue *VerificationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateBrowserVerificationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateBrowserVerificationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1890,9 +1890,9 @@ func (a *FrontendApiService) CreateBrowserVerificationFlowExecute(r FrontendApiA return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeLoginFlowRequest struct { +type FrontendAPIApiCreateNativeLoginFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI refresh *bool aal *string xSessionToken *string @@ -1901,32 +1901,32 @@ type FrontendApiApiCreateNativeLoginFlowRequest struct { via *string } -func (r FrontendApiApiCreateNativeLoginFlowRequest) Refresh(refresh bool) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) Refresh(refresh bool) FrontendAPIApiCreateNativeLoginFlowRequest { r.refresh = &refresh return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) Aal(aal string) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) Aal(aal string) FrontendAPIApiCreateNativeLoginFlowRequest { r.aal = &aal return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiCreateNativeLoginFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode bool) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode bool) FrontendAPIApiCreateNativeLoginFlowRequest { r.returnSessionTokenExchangeCode = &returnSessionTokenExchangeCode return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateNativeLoginFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) Via(via string) FrontendApiApiCreateNativeLoginFlowRequest { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) Via(via string) FrontendAPIApiCreateNativeLoginFlowRequest { r.via = &via return r } -func (r FrontendApiApiCreateNativeLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { return r.ApiService.CreateNativeLoginFlowExecute(r) } @@ -1953,10 +1953,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeLoginFlowRequest + - @return FrontendAPIApiCreateNativeLoginFlowRequest */ -func (a *FrontendApiService) CreateNativeLoginFlow(ctx context.Context) FrontendApiApiCreateNativeLoginFlowRequest { - return FrontendApiApiCreateNativeLoginFlowRequest{ +func (a *FrontendAPIService) CreateNativeLoginFlow(ctx context.Context) FrontendAPIApiCreateNativeLoginFlowRequest { + return FrontendAPIApiCreateNativeLoginFlowRequest{ ApiService: a, ctx: ctx, } @@ -1966,7 +1966,7 @@ func (a *FrontendApiService) CreateNativeLoginFlow(ctx context.Context) Frontend * Execute executes the request * @return LoginFlow */ -func (a *FrontendApiService) CreateNativeLoginFlowExecute(r FrontendApiApiCreateNativeLoginFlowRequest) (*LoginFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeLoginFlowExecute(r FrontendAPIApiCreateNativeLoginFlowRequest) (*LoginFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1976,7 +1976,7 @@ func (a *FrontendApiService) CreateNativeLoginFlowExecute(r FrontendApiApiCreate localVarReturnValue *LoginFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeLoginFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeLoginFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2076,12 +2076,12 @@ func (a *FrontendApiService) CreateNativeLoginFlowExecute(r FrontendApiApiCreate return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeRecoveryFlowRequest struct { +type FrontendAPIApiCreateNativeRecoveryFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI } -func (r FrontendApiApiCreateNativeRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { return r.ApiService.CreateNativeRecoveryFlowExecute(r) } @@ -2101,10 +2101,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeRecoveryFlowRequest + - @return FrontendAPIApiCreateNativeRecoveryFlowRequest */ -func (a *FrontendApiService) CreateNativeRecoveryFlow(ctx context.Context) FrontendApiApiCreateNativeRecoveryFlowRequest { - return FrontendApiApiCreateNativeRecoveryFlowRequest{ +func (a *FrontendAPIService) CreateNativeRecoveryFlow(ctx context.Context) FrontendAPIApiCreateNativeRecoveryFlowRequest { + return FrontendAPIApiCreateNativeRecoveryFlowRequest{ ApiService: a, ctx: ctx, } @@ -2114,7 +2114,7 @@ func (a *FrontendApiService) CreateNativeRecoveryFlow(ctx context.Context) Front * Execute executes the request * @return RecoveryFlow */ -func (a *FrontendApiService) CreateNativeRecoveryFlowExecute(r FrontendApiApiCreateNativeRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeRecoveryFlowExecute(r FrontendAPIApiCreateNativeRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2124,7 +2124,7 @@ func (a *FrontendApiService) CreateNativeRecoveryFlowExecute(r FrontendApiApiCre localVarReturnValue *RecoveryFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeRecoveryFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeRecoveryFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2206,23 +2206,23 @@ func (a *FrontendApiService) CreateNativeRecoveryFlowExecute(r FrontendApiApiCre return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeRegistrationFlowRequest struct { +type FrontendAPIApiCreateNativeRegistrationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI returnSessionTokenExchangeCode *bool returnTo *string } -func (r FrontendApiApiCreateNativeRegistrationFlowRequest) ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode bool) FrontendApiApiCreateNativeRegistrationFlowRequest { +func (r FrontendAPIApiCreateNativeRegistrationFlowRequest) ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode bool) FrontendAPIApiCreateNativeRegistrationFlowRequest { r.returnSessionTokenExchangeCode = &returnSessionTokenExchangeCode return r } -func (r FrontendApiApiCreateNativeRegistrationFlowRequest) ReturnTo(returnTo string) FrontendApiApiCreateNativeRegistrationFlowRequest { +func (r FrontendAPIApiCreateNativeRegistrationFlowRequest) ReturnTo(returnTo string) FrontendAPIApiCreateNativeRegistrationFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiCreateNativeRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { return r.ApiService.CreateNativeRegistrationFlowExecute(r) } @@ -2248,10 +2248,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeRegistrationFlowRequest + - @return FrontendAPIApiCreateNativeRegistrationFlowRequest */ -func (a *FrontendApiService) CreateNativeRegistrationFlow(ctx context.Context) FrontendApiApiCreateNativeRegistrationFlowRequest { - return FrontendApiApiCreateNativeRegistrationFlowRequest{ +func (a *FrontendAPIService) CreateNativeRegistrationFlow(ctx context.Context) FrontendAPIApiCreateNativeRegistrationFlowRequest { + return FrontendAPIApiCreateNativeRegistrationFlowRequest{ ApiService: a, ctx: ctx, } @@ -2261,7 +2261,7 @@ func (a *FrontendApiService) CreateNativeRegistrationFlow(ctx context.Context) F * Execute executes the request * @return RegistrationFlow */ -func (a *FrontendApiService) CreateNativeRegistrationFlowExecute(r FrontendApiApiCreateNativeRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeRegistrationFlowExecute(r FrontendAPIApiCreateNativeRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2271,7 +2271,7 @@ func (a *FrontendApiService) CreateNativeRegistrationFlowExecute(r FrontendApiAp localVarReturnValue *RegistrationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeRegistrationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeRegistrationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2359,18 +2359,18 @@ func (a *FrontendApiService) CreateNativeRegistrationFlowExecute(r FrontendApiAp return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeSettingsFlowRequest struct { +type FrontendAPIApiCreateNativeSettingsFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI xSessionToken *string } -func (r FrontendApiApiCreateNativeSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiCreateNativeSettingsFlowRequest { +func (r FrontendAPIApiCreateNativeSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiCreateNativeSettingsFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiCreateNativeSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { return r.ApiService.CreateNativeSettingsFlowExecute(r) } @@ -2400,10 +2400,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeSettingsFlowRequest + - @return FrontendAPIApiCreateNativeSettingsFlowRequest */ -func (a *FrontendApiService) CreateNativeSettingsFlow(ctx context.Context) FrontendApiApiCreateNativeSettingsFlowRequest { - return FrontendApiApiCreateNativeSettingsFlowRequest{ +func (a *FrontendAPIService) CreateNativeSettingsFlow(ctx context.Context) FrontendAPIApiCreateNativeSettingsFlowRequest { + return FrontendAPIApiCreateNativeSettingsFlowRequest{ ApiService: a, ctx: ctx, } @@ -2413,7 +2413,7 @@ func (a *FrontendApiService) CreateNativeSettingsFlow(ctx context.Context) Front * Execute executes the request * @return SettingsFlow */ -func (a *FrontendApiService) CreateNativeSettingsFlowExecute(r FrontendApiApiCreateNativeSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeSettingsFlowExecute(r FrontendAPIApiCreateNativeSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2423,7 +2423,7 @@ func (a *FrontendApiService) CreateNativeSettingsFlowExecute(r FrontendApiApiCre localVarReturnValue *SettingsFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeSettingsFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeSettingsFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2508,12 +2508,12 @@ func (a *FrontendApiService) CreateNativeSettingsFlowExecute(r FrontendApiApiCre return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiCreateNativeVerificationFlowRequest struct { +type FrontendAPIApiCreateNativeVerificationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI } -func (r FrontendApiApiCreateNativeVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { +func (r FrontendAPIApiCreateNativeVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { return r.ApiService.CreateNativeVerificationFlowExecute(r) } @@ -2531,10 +2531,10 @@ This endpoint MUST ONLY be used in scenarios such as native mobile apps (React N More information can be found at [Ory Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiCreateNativeVerificationFlowRequest + - @return FrontendAPIApiCreateNativeVerificationFlowRequest */ -func (a *FrontendApiService) CreateNativeVerificationFlow(ctx context.Context) FrontendApiApiCreateNativeVerificationFlowRequest { - return FrontendApiApiCreateNativeVerificationFlowRequest{ +func (a *FrontendAPIService) CreateNativeVerificationFlow(ctx context.Context) FrontendAPIApiCreateNativeVerificationFlowRequest { + return FrontendAPIApiCreateNativeVerificationFlowRequest{ ApiService: a, ctx: ctx, } @@ -2544,7 +2544,7 @@ func (a *FrontendApiService) CreateNativeVerificationFlow(ctx context.Context) F * Execute executes the request * @return VerificationFlow */ -func (a *FrontendApiService) CreateNativeVerificationFlowExecute(r FrontendApiApiCreateNativeVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { +func (a *FrontendAPIService) CreateNativeVerificationFlowExecute(r FrontendAPIApiCreateNativeVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2554,7 +2554,7 @@ func (a *FrontendApiService) CreateNativeVerificationFlowExecute(r FrontendApiAp localVarReturnValue *VerificationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.CreateNativeVerificationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.CreateNativeVerificationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2636,23 +2636,23 @@ func (a *FrontendApiService) CreateNativeVerificationFlowExecute(r FrontendApiAp return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiDisableMyOtherSessionsRequest struct { +type FrontendAPIApiDisableMyOtherSessionsRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI xSessionToken *string cookie *string } -func (r FrontendApiApiDisableMyOtherSessionsRequest) XSessionToken(xSessionToken string) FrontendApiApiDisableMyOtherSessionsRequest { +func (r FrontendAPIApiDisableMyOtherSessionsRequest) XSessionToken(xSessionToken string) FrontendAPIApiDisableMyOtherSessionsRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiDisableMyOtherSessionsRequest) Cookie(cookie string) FrontendApiApiDisableMyOtherSessionsRequest { +func (r FrontendAPIApiDisableMyOtherSessionsRequest) Cookie(cookie string) FrontendAPIApiDisableMyOtherSessionsRequest { r.cookie = &cookie return r } -func (r FrontendApiApiDisableMyOtherSessionsRequest) Execute() (*DeleteMySessionsCount, *http.Response, error) { +func (r FrontendAPIApiDisableMyOtherSessionsRequest) Execute() (*DeleteMySessionsCount, *http.Response, error) { return r.ApiService.DisableMyOtherSessionsExecute(r) } @@ -2662,10 +2662,10 @@ func (r FrontendApiApiDisableMyOtherSessionsRequest) Execute() (*DeleteMySession Session data are not deleted. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiDisableMyOtherSessionsRequest + - @return FrontendAPIApiDisableMyOtherSessionsRequest */ -func (a *FrontendApiService) DisableMyOtherSessions(ctx context.Context) FrontendApiApiDisableMyOtherSessionsRequest { - return FrontendApiApiDisableMyOtherSessionsRequest{ +func (a *FrontendAPIService) DisableMyOtherSessions(ctx context.Context) FrontendAPIApiDisableMyOtherSessionsRequest { + return FrontendAPIApiDisableMyOtherSessionsRequest{ ApiService: a, ctx: ctx, } @@ -2675,7 +2675,7 @@ func (a *FrontendApiService) DisableMyOtherSessions(ctx context.Context) Fronten * Execute executes the request * @return DeleteMySessionsCount */ -func (a *FrontendApiService) DisableMyOtherSessionsExecute(r FrontendApiApiDisableMyOtherSessionsRequest) (*DeleteMySessionsCount, *http.Response, error) { +func (a *FrontendAPIService) DisableMyOtherSessionsExecute(r FrontendAPIApiDisableMyOtherSessionsRequest) (*DeleteMySessionsCount, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -2685,7 +2685,7 @@ func (a *FrontendApiService) DisableMyOtherSessionsExecute(r FrontendApiApiDisab localVarReturnValue *DeleteMySessionsCount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.DisableMyOtherSessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.DisableMyOtherSessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2783,24 +2783,24 @@ func (a *FrontendApiService) DisableMyOtherSessionsExecute(r FrontendApiApiDisab return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiDisableMySessionRequest struct { +type FrontendAPIApiDisableMySessionRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id string xSessionToken *string cookie *string } -func (r FrontendApiApiDisableMySessionRequest) XSessionToken(xSessionToken string) FrontendApiApiDisableMySessionRequest { +func (r FrontendAPIApiDisableMySessionRequest) XSessionToken(xSessionToken string) FrontendAPIApiDisableMySessionRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiDisableMySessionRequest) Cookie(cookie string) FrontendApiApiDisableMySessionRequest { +func (r FrontendAPIApiDisableMySessionRequest) Cookie(cookie string) FrontendAPIApiDisableMySessionRequest { r.cookie = &cookie return r } -func (r FrontendApiApiDisableMySessionRequest) Execute() (*http.Response, error) { +func (r FrontendAPIApiDisableMySessionRequest) Execute() (*http.Response, error) { return r.ApiService.DisableMySessionExecute(r) } @@ -2811,10 +2811,10 @@ func (r FrontendApiApiDisableMySessionRequest) Execute() (*http.Response, error) Session data are not deleted. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the session's ID. - - @return FrontendApiApiDisableMySessionRequest + - @return FrontendAPIApiDisableMySessionRequest */ -func (a *FrontendApiService) DisableMySession(ctx context.Context, id string) FrontendApiApiDisableMySessionRequest { - return FrontendApiApiDisableMySessionRequest{ +func (a *FrontendAPIService) DisableMySession(ctx context.Context, id string) FrontendAPIApiDisableMySessionRequest { + return FrontendAPIApiDisableMySessionRequest{ ApiService: a, ctx: ctx, id: id, @@ -2824,7 +2824,7 @@ func (a *FrontendApiService) DisableMySession(ctx context.Context, id string) Fr /* * Execute executes the request */ -func (a *FrontendApiService) DisableMySessionExecute(r FrontendApiApiDisableMySessionRequest) (*http.Response, error) { +func (a *FrontendAPIService) DisableMySessionExecute(r FrontendAPIApiDisableMySessionRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -2833,7 +2833,7 @@ func (a *FrontendApiService) DisableMySessionExecute(r FrontendApiApiDisableMySe localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.DisableMySession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.DisableMySession") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2923,33 +2923,33 @@ func (a *FrontendApiService) DisableMySessionExecute(r FrontendApiApiDisableMySe return localVarHTTPResponse, nil } -type FrontendApiApiExchangeSessionTokenRequest struct { +type FrontendAPIApiExchangeSessionTokenRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI initCode *string returnToCode *string } -func (r FrontendApiApiExchangeSessionTokenRequest) InitCode(initCode string) FrontendApiApiExchangeSessionTokenRequest { +func (r FrontendAPIApiExchangeSessionTokenRequest) InitCode(initCode string) FrontendAPIApiExchangeSessionTokenRequest { r.initCode = &initCode return r } -func (r FrontendApiApiExchangeSessionTokenRequest) ReturnToCode(returnToCode string) FrontendApiApiExchangeSessionTokenRequest { +func (r FrontendAPIApiExchangeSessionTokenRequest) ReturnToCode(returnToCode string) FrontendAPIApiExchangeSessionTokenRequest { r.returnToCode = &returnToCode return r } -func (r FrontendApiApiExchangeSessionTokenRequest) Execute() (*SuccessfulNativeLogin, *http.Response, error) { +func (r FrontendAPIApiExchangeSessionTokenRequest) Execute() (*SuccessfulNativeLogin, *http.Response, error) { return r.ApiService.ExchangeSessionTokenExecute(r) } /* * ExchangeSessionToken Exchange Session Token * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return FrontendApiApiExchangeSessionTokenRequest + * @return FrontendAPIApiExchangeSessionTokenRequest */ -func (a *FrontendApiService) ExchangeSessionToken(ctx context.Context) FrontendApiApiExchangeSessionTokenRequest { - return FrontendApiApiExchangeSessionTokenRequest{ +func (a *FrontendAPIService) ExchangeSessionToken(ctx context.Context) FrontendAPIApiExchangeSessionTokenRequest { + return FrontendAPIApiExchangeSessionTokenRequest{ ApiService: a, ctx: ctx, } @@ -2959,7 +2959,7 @@ func (a *FrontendApiService) ExchangeSessionToken(ctx context.Context) FrontendA * Execute executes the request * @return SuccessfulNativeLogin */ -func (a *FrontendApiService) ExchangeSessionTokenExecute(r FrontendApiApiExchangeSessionTokenRequest) (*SuccessfulNativeLogin, *http.Response, error) { +func (a *FrontendAPIService) ExchangeSessionTokenExecute(r FrontendAPIApiExchangeSessionTokenRequest) (*SuccessfulNativeLogin, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2969,7 +2969,7 @@ func (a *FrontendApiService) ExchangeSessionTokenExecute(r FrontendApiApiExchang localVarReturnValue *SuccessfulNativeLogin ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.ExchangeSessionToken") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.ExchangeSessionToken") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3079,18 +3079,18 @@ func (a *FrontendApiService) ExchangeSessionTokenExecute(r FrontendApiApiExchang return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetFlowErrorRequest struct { +type FrontendAPIApiGetFlowErrorRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string } -func (r FrontendApiApiGetFlowErrorRequest) Id(id string) FrontendApiApiGetFlowErrorRequest { +func (r FrontendAPIApiGetFlowErrorRequest) Id(id string) FrontendAPIApiGetFlowErrorRequest { r.id = &id return r } -func (r FrontendApiApiGetFlowErrorRequest) Execute() (*FlowError, *http.Response, error) { +func (r FrontendAPIApiGetFlowErrorRequest) Execute() (*FlowError, *http.Response, error) { return r.ApiService.GetFlowErrorExecute(r) } @@ -3104,10 +3104,10 @@ This endpoint supports stub values to help you implement the error UI: More information can be found at [Ory Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetFlowErrorRequest + - @return FrontendAPIApiGetFlowErrorRequest */ -func (a *FrontendApiService) GetFlowError(ctx context.Context) FrontendApiApiGetFlowErrorRequest { - return FrontendApiApiGetFlowErrorRequest{ +func (a *FrontendAPIService) GetFlowError(ctx context.Context) FrontendAPIApiGetFlowErrorRequest { + return FrontendAPIApiGetFlowErrorRequest{ ApiService: a, ctx: ctx, } @@ -3117,7 +3117,7 @@ func (a *FrontendApiService) GetFlowError(ctx context.Context) FrontendApiApiGet * Execute executes the request * @return FlowError */ -func (a *FrontendApiService) GetFlowErrorExecute(r FrontendApiApiGetFlowErrorRequest) (*FlowError, *http.Response, error) { +func (a *FrontendAPIService) GetFlowErrorExecute(r FrontendAPIApiGetFlowErrorRequest) (*FlowError, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3127,7 +3127,7 @@ func (a *FrontendApiService) GetFlowErrorExecute(r FrontendApiApiGetFlowErrorReq localVarReturnValue *FlowError ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetFlowError") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetFlowError") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3225,23 +3225,23 @@ func (a *FrontendApiService) GetFlowErrorExecute(r FrontendApiApiGetFlowErrorReq return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetLoginFlowRequest struct { +type FrontendAPIApiGetLoginFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string cookie *string } -func (r FrontendApiApiGetLoginFlowRequest) Id(id string) FrontendApiApiGetLoginFlowRequest { +func (r FrontendAPIApiGetLoginFlowRequest) Id(id string) FrontendAPIApiGetLoginFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetLoginFlowRequest) Cookie(cookie string) FrontendApiApiGetLoginFlowRequest { +func (r FrontendAPIApiGetLoginFlowRequest) Cookie(cookie string) FrontendAPIApiGetLoginFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { +func (r FrontendAPIApiGetLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { return r.ApiService.GetLoginFlowExecute(r) } @@ -3271,10 +3271,10 @@ This request may fail due to several reasons. The `error.id` can be one of: More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetLoginFlowRequest + - @return FrontendAPIApiGetLoginFlowRequest */ -func (a *FrontendApiService) GetLoginFlow(ctx context.Context) FrontendApiApiGetLoginFlowRequest { - return FrontendApiApiGetLoginFlowRequest{ +func (a *FrontendAPIService) GetLoginFlow(ctx context.Context) FrontendAPIApiGetLoginFlowRequest { + return FrontendAPIApiGetLoginFlowRequest{ ApiService: a, ctx: ctx, } @@ -3284,7 +3284,7 @@ func (a *FrontendApiService) GetLoginFlow(ctx context.Context) FrontendApiApiGet * Execute executes the request * @return LoginFlow */ -func (a *FrontendApiService) GetLoginFlowExecute(r FrontendApiApiGetLoginFlowRequest) (*LoginFlow, *http.Response, error) { +func (a *FrontendAPIService) GetLoginFlowExecute(r FrontendAPIApiGetLoginFlowRequest) (*LoginFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3294,7 +3294,7 @@ func (a *FrontendApiService) GetLoginFlowExecute(r FrontendApiApiGetLoginFlowReq localVarReturnValue *LoginFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetLoginFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetLoginFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3403,23 +3403,23 @@ func (a *FrontendApiService) GetLoginFlowExecute(r FrontendApiApiGetLoginFlowReq return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetRecoveryFlowRequest struct { +type FrontendAPIApiGetRecoveryFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string cookie *string } -func (r FrontendApiApiGetRecoveryFlowRequest) Id(id string) FrontendApiApiGetRecoveryFlowRequest { +func (r FrontendAPIApiGetRecoveryFlowRequest) Id(id string) FrontendAPIApiGetRecoveryFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetRecoveryFlowRequest) Cookie(cookie string) FrontendApiApiGetRecoveryFlowRequest { +func (r FrontendAPIApiGetRecoveryFlowRequest) Cookie(cookie string) FrontendAPIApiGetRecoveryFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { +func (r FrontendAPIApiGetRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { return r.ApiService.GetRecoveryFlowExecute(r) } @@ -3444,10 +3444,10 @@ res.render('recovery', flow) More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetRecoveryFlowRequest + - @return FrontendAPIApiGetRecoveryFlowRequest */ -func (a *FrontendApiService) GetRecoveryFlow(ctx context.Context) FrontendApiApiGetRecoveryFlowRequest { - return FrontendApiApiGetRecoveryFlowRequest{ +func (a *FrontendAPIService) GetRecoveryFlow(ctx context.Context) FrontendAPIApiGetRecoveryFlowRequest { + return FrontendAPIApiGetRecoveryFlowRequest{ ApiService: a, ctx: ctx, } @@ -3457,7 +3457,7 @@ func (a *FrontendApiService) GetRecoveryFlow(ctx context.Context) FrontendApiApi * Execute executes the request * @return RecoveryFlow */ -func (a *FrontendApiService) GetRecoveryFlowExecute(r FrontendApiApiGetRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { +func (a *FrontendAPIService) GetRecoveryFlowExecute(r FrontendAPIApiGetRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3467,7 +3467,7 @@ func (a *FrontendApiService) GetRecoveryFlowExecute(r FrontendApiApiGetRecoveryF localVarReturnValue *RecoveryFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetRecoveryFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetRecoveryFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3566,23 +3566,23 @@ func (a *FrontendApiService) GetRecoveryFlowExecute(r FrontendApiApiGetRecoveryF return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetRegistrationFlowRequest struct { +type FrontendAPIApiGetRegistrationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string cookie *string } -func (r FrontendApiApiGetRegistrationFlowRequest) Id(id string) FrontendApiApiGetRegistrationFlowRequest { +func (r FrontendAPIApiGetRegistrationFlowRequest) Id(id string) FrontendAPIApiGetRegistrationFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetRegistrationFlowRequest) Cookie(cookie string) FrontendApiApiGetRegistrationFlowRequest { +func (r FrontendAPIApiGetRegistrationFlowRequest) Cookie(cookie string) FrontendAPIApiGetRegistrationFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { +func (r FrontendAPIApiGetRegistrationFlowRequest) Execute() (*RegistrationFlow, *http.Response, error) { return r.ApiService.GetRegistrationFlowExecute(r) } @@ -3612,10 +3612,10 @@ This request may fail due to several reasons. The `error.id` can be one of: More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetRegistrationFlowRequest + - @return FrontendAPIApiGetRegistrationFlowRequest */ -func (a *FrontendApiService) GetRegistrationFlow(ctx context.Context) FrontendApiApiGetRegistrationFlowRequest { - return FrontendApiApiGetRegistrationFlowRequest{ +func (a *FrontendAPIService) GetRegistrationFlow(ctx context.Context) FrontendAPIApiGetRegistrationFlowRequest { + return FrontendAPIApiGetRegistrationFlowRequest{ ApiService: a, ctx: ctx, } @@ -3625,7 +3625,7 @@ func (a *FrontendApiService) GetRegistrationFlow(ctx context.Context) FrontendAp * Execute executes the request * @return RegistrationFlow */ -func (a *FrontendApiService) GetRegistrationFlowExecute(r FrontendApiApiGetRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { +func (a *FrontendAPIService) GetRegistrationFlowExecute(r FrontendAPIApiGetRegistrationFlowRequest) (*RegistrationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3635,7 +3635,7 @@ func (a *FrontendApiService) GetRegistrationFlowExecute(r FrontendApiApiGetRegis localVarReturnValue *RegistrationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetRegistrationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetRegistrationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3744,28 +3744,28 @@ func (a *FrontendApiService) GetRegistrationFlowExecute(r FrontendApiApiGetRegis return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetSettingsFlowRequest struct { +type FrontendAPIApiGetSettingsFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string xSessionToken *string cookie *string } -func (r FrontendApiApiGetSettingsFlowRequest) Id(id string) FrontendApiApiGetSettingsFlowRequest { +func (r FrontendAPIApiGetSettingsFlowRequest) Id(id string) FrontendAPIApiGetSettingsFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiGetSettingsFlowRequest { +func (r FrontendAPIApiGetSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiGetSettingsFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiGetSettingsFlowRequest) Cookie(cookie string) FrontendApiApiGetSettingsFlowRequest { +func (r FrontendAPIApiGetSettingsFlowRequest) Cookie(cookie string) FrontendAPIApiGetSettingsFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { +func (r FrontendAPIApiGetSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { return r.ApiService.GetSettingsFlowExecute(r) } @@ -3792,10 +3792,10 @@ identity logged in instead. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetSettingsFlowRequest + - @return FrontendAPIApiGetSettingsFlowRequest */ -func (a *FrontendApiService) GetSettingsFlow(ctx context.Context) FrontendApiApiGetSettingsFlowRequest { - return FrontendApiApiGetSettingsFlowRequest{ +func (a *FrontendAPIService) GetSettingsFlow(ctx context.Context) FrontendAPIApiGetSettingsFlowRequest { + return FrontendAPIApiGetSettingsFlowRequest{ ApiService: a, ctx: ctx, } @@ -3805,7 +3805,7 @@ func (a *FrontendApiService) GetSettingsFlow(ctx context.Context) FrontendApiApi * Execute executes the request * @return SettingsFlow */ -func (a *FrontendApiService) GetSettingsFlowExecute(r FrontendApiApiGetSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { +func (a *FrontendAPIService) GetSettingsFlowExecute(r FrontendAPIApiGetSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3815,7 +3815,7 @@ func (a *FrontendApiService) GetSettingsFlowExecute(r FrontendApiApiGetSettingsF localVarReturnValue *SettingsFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetSettingsFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetSettingsFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3937,23 +3937,23 @@ func (a *FrontendApiService) GetSettingsFlowExecute(r FrontendApiApiGetSettingsF return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetVerificationFlowRequest struct { +type FrontendAPIApiGetVerificationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI id *string cookie *string } -func (r FrontendApiApiGetVerificationFlowRequest) Id(id string) FrontendApiApiGetVerificationFlowRequest { +func (r FrontendAPIApiGetVerificationFlowRequest) Id(id string) FrontendAPIApiGetVerificationFlowRequest { r.id = &id return r } -func (r FrontendApiApiGetVerificationFlowRequest) Cookie(cookie string) FrontendApiApiGetVerificationFlowRequest { +func (r FrontendAPIApiGetVerificationFlowRequest) Cookie(cookie string) FrontendAPIApiGetVerificationFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiGetVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { +func (r FrontendAPIApiGetVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { return r.ApiService.GetVerificationFlowExecute(r) } @@ -3978,10 +3978,10 @@ res.render('verification', flow) More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetVerificationFlowRequest + - @return FrontendAPIApiGetVerificationFlowRequest */ -func (a *FrontendApiService) GetVerificationFlow(ctx context.Context) FrontendApiApiGetVerificationFlowRequest { - return FrontendApiApiGetVerificationFlowRequest{ +func (a *FrontendAPIService) GetVerificationFlow(ctx context.Context) FrontendAPIApiGetVerificationFlowRequest { + return FrontendAPIApiGetVerificationFlowRequest{ ApiService: a, ctx: ctx, } @@ -3991,7 +3991,7 @@ func (a *FrontendApiService) GetVerificationFlow(ctx context.Context) FrontendAp * Execute executes the request * @return VerificationFlow */ -func (a *FrontendApiService) GetVerificationFlowExecute(r FrontendApiApiGetVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { +func (a *FrontendAPIService) GetVerificationFlowExecute(r FrontendAPIApiGetVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4001,7 +4001,7 @@ func (a *FrontendApiService) GetVerificationFlowExecute(r FrontendApiApiGetVerif localVarReturnValue *VerificationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetVerificationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetVerificationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4100,12 +4100,12 @@ func (a *FrontendApiService) GetVerificationFlowExecute(r FrontendApiApiGetVerif return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiGetWebAuthnJavaScriptRequest struct { +type FrontendAPIApiGetWebAuthnJavaScriptRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI } -func (r FrontendApiApiGetWebAuthnJavaScriptRequest) Execute() (string, *http.Response, error) { +func (r FrontendAPIApiGetWebAuthnJavaScriptRequest) Execute() (string, *http.Response, error) { return r.ApiService.GetWebAuthnJavaScriptExecute(r) } @@ -4121,10 +4121,10 @@ If you are building a JavaScript Browser App (e.g. in ReactJS or AngularJS) you More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiGetWebAuthnJavaScriptRequest + - @return FrontendAPIApiGetWebAuthnJavaScriptRequest */ -func (a *FrontendApiService) GetWebAuthnJavaScript(ctx context.Context) FrontendApiApiGetWebAuthnJavaScriptRequest { - return FrontendApiApiGetWebAuthnJavaScriptRequest{ +func (a *FrontendAPIService) GetWebAuthnJavaScript(ctx context.Context) FrontendAPIApiGetWebAuthnJavaScriptRequest { + return FrontendAPIApiGetWebAuthnJavaScriptRequest{ ApiService: a, ctx: ctx, } @@ -4134,7 +4134,7 @@ func (a *FrontendApiService) GetWebAuthnJavaScript(ctx context.Context) Frontend * Execute executes the request * @return string */ -func (a *FrontendApiService) GetWebAuthnJavaScriptExecute(r FrontendApiApiGetWebAuthnJavaScriptRequest) (string, *http.Response, error) { +func (a *FrontendAPIService) GetWebAuthnJavaScriptExecute(r FrontendAPIApiGetWebAuthnJavaScriptRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4144,7 +4144,7 @@ func (a *FrontendApiService) GetWebAuthnJavaScriptExecute(r FrontendApiApiGetWeb localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.GetWebAuthnJavaScript") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.GetWebAuthnJavaScript") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4209,9 +4209,9 @@ func (a *FrontendApiService) GetWebAuthnJavaScriptExecute(r FrontendApiApiGetWeb return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiListMySessionsRequest struct { +type FrontendAPIApiListMySessionsRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI perPage *int64 page *int64 pageSize *int64 @@ -4220,32 +4220,32 @@ type FrontendApiApiListMySessionsRequest struct { cookie *string } -func (r FrontendApiApiListMySessionsRequest) PerPage(perPage int64) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) PerPage(perPage int64) FrontendAPIApiListMySessionsRequest { r.perPage = &perPage return r } -func (r FrontendApiApiListMySessionsRequest) Page(page int64) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) Page(page int64) FrontendAPIApiListMySessionsRequest { r.page = &page return r } -func (r FrontendApiApiListMySessionsRequest) PageSize(pageSize int64) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) PageSize(pageSize int64) FrontendAPIApiListMySessionsRequest { r.pageSize = &pageSize return r } -func (r FrontendApiApiListMySessionsRequest) PageToken(pageToken string) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) PageToken(pageToken string) FrontendAPIApiListMySessionsRequest { r.pageToken = &pageToken return r } -func (r FrontendApiApiListMySessionsRequest) XSessionToken(xSessionToken string) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) XSessionToken(xSessionToken string) FrontendAPIApiListMySessionsRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiListMySessionsRequest) Cookie(cookie string) FrontendApiApiListMySessionsRequest { +func (r FrontendAPIApiListMySessionsRequest) Cookie(cookie string) FrontendAPIApiListMySessionsRequest { r.cookie = &cookie return r } -func (r FrontendApiApiListMySessionsRequest) Execute() ([]Session, *http.Response, error) { +func (r FrontendAPIApiListMySessionsRequest) Execute() ([]Session, *http.Response, error) { return r.ApiService.ListMySessionsExecute(r) } @@ -4255,10 +4255,10 @@ func (r FrontendApiApiListMySessionsRequest) Execute() ([]Session, *http.Respons The current session can be retrieved by calling the `/sessions/whoami` endpoint. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiListMySessionsRequest + - @return FrontendAPIApiListMySessionsRequest */ -func (a *FrontendApiService) ListMySessions(ctx context.Context) FrontendApiApiListMySessionsRequest { - return FrontendApiApiListMySessionsRequest{ +func (a *FrontendAPIService) ListMySessions(ctx context.Context) FrontendAPIApiListMySessionsRequest { + return FrontendAPIApiListMySessionsRequest{ ApiService: a, ctx: ctx, } @@ -4268,7 +4268,7 @@ func (a *FrontendApiService) ListMySessions(ctx context.Context) FrontendApiApiL * Execute executes the request * @return []Session */ -func (a *FrontendApiService) ListMySessionsExecute(r FrontendApiApiListMySessionsRequest) ([]Session, *http.Response, error) { +func (a *FrontendAPIService) ListMySessionsExecute(r FrontendAPIApiListMySessionsRequest) ([]Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4278,7 +4278,7 @@ func (a *FrontendApiService) ListMySessionsExecute(r FrontendApiApiListMySession localVarReturnValue []Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.ListMySessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.ListMySessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4388,18 +4388,18 @@ func (a *FrontendApiService) ListMySessionsExecute(r FrontendApiApiListMySession return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiPerformNativeLogoutRequest struct { +type FrontendAPIApiPerformNativeLogoutRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI performNativeLogoutBody *PerformNativeLogoutBody } -func (r FrontendApiApiPerformNativeLogoutRequest) PerformNativeLogoutBody(performNativeLogoutBody PerformNativeLogoutBody) FrontendApiApiPerformNativeLogoutRequest { +func (r FrontendAPIApiPerformNativeLogoutRequest) PerformNativeLogoutBody(performNativeLogoutBody PerformNativeLogoutBody) FrontendAPIApiPerformNativeLogoutRequest { r.performNativeLogoutBody = &performNativeLogoutBody return r } -func (r FrontendApiApiPerformNativeLogoutRequest) Execute() (*http.Response, error) { +func (r FrontendAPIApiPerformNativeLogoutRequest) Execute() (*http.Response, error) { return r.ApiService.PerformNativeLogoutExecute(r) } @@ -4415,10 +4415,10 @@ If the Ory Session Token is malformed or does not exist a 403 Forbidden response This endpoint does not remove any HTTP Cookies - use the Browser-Based Self-Service Logout Flow instead. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiPerformNativeLogoutRequest + - @return FrontendAPIApiPerformNativeLogoutRequest */ -func (a *FrontendApiService) PerformNativeLogout(ctx context.Context) FrontendApiApiPerformNativeLogoutRequest { - return FrontendApiApiPerformNativeLogoutRequest{ +func (a *FrontendAPIService) PerformNativeLogout(ctx context.Context) FrontendAPIApiPerformNativeLogoutRequest { + return FrontendAPIApiPerformNativeLogoutRequest{ ApiService: a, ctx: ctx, } @@ -4427,7 +4427,7 @@ func (a *FrontendApiService) PerformNativeLogout(ctx context.Context) FrontendAp /* * Execute executes the request */ -func (a *FrontendApiService) PerformNativeLogoutExecute(r FrontendApiApiPerformNativeLogoutRequest) (*http.Response, error) { +func (a *FrontendAPIService) PerformNativeLogoutExecute(r FrontendAPIApiPerformNativeLogoutRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -4436,7 +4436,7 @@ func (a *FrontendApiService) PerformNativeLogoutExecute(r FrontendApiApiPerformN localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.PerformNativeLogout") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.PerformNativeLogout") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4514,28 +4514,28 @@ func (a *FrontendApiService) PerformNativeLogoutExecute(r FrontendApiApiPerformN return localVarHTTPResponse, nil } -type FrontendApiApiToSessionRequest struct { +type FrontendAPIApiToSessionRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI xSessionToken *string cookie *string tokenizeAs *string } -func (r FrontendApiApiToSessionRequest) XSessionToken(xSessionToken string) FrontendApiApiToSessionRequest { +func (r FrontendAPIApiToSessionRequest) XSessionToken(xSessionToken string) FrontendAPIApiToSessionRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiToSessionRequest) Cookie(cookie string) FrontendApiApiToSessionRequest { +func (r FrontendAPIApiToSessionRequest) Cookie(cookie string) FrontendAPIApiToSessionRequest { r.cookie = &cookie return r } -func (r FrontendApiApiToSessionRequest) TokenizeAs(tokenizeAs string) FrontendApiApiToSessionRequest { +func (r FrontendAPIApiToSessionRequest) TokenizeAs(tokenizeAs string) FrontendAPIApiToSessionRequest { r.tokenizeAs = &tokenizeAs return r } -func (r FrontendApiApiToSessionRequest) Execute() (*Session, *http.Response, error) { +func (r FrontendAPIApiToSessionRequest) Execute() (*Session, *http.Response, error) { return r.ApiService.ToSessionExecute(r) } @@ -4602,10 +4602,10 @@ As explained above, this request may fail due to several reasons. The `error.id` `session_inactive`: No active session was found in the request (e.g. no Ory Session Cookie / Ory Session Token). `session_aal2_required`: An active session was found but it does not fulfil the Authenticator Assurance Level, implying that the session must (e.g.) authenticate the second factor. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiToSessionRequest + - @return FrontendAPIApiToSessionRequest */ -func (a *FrontendApiService) ToSession(ctx context.Context) FrontendApiApiToSessionRequest { - return FrontendApiApiToSessionRequest{ +func (a *FrontendAPIService) ToSession(ctx context.Context) FrontendAPIApiToSessionRequest { + return FrontendAPIApiToSessionRequest{ ApiService: a, ctx: ctx, } @@ -4615,7 +4615,7 @@ func (a *FrontendApiService) ToSession(ctx context.Context) FrontendApiApiToSess * Execute executes the request * @return Session */ -func (a *FrontendApiService) ToSessionExecute(r FrontendApiApiToSessionRequest) (*Session, *http.Response, error) { +func (a *FrontendAPIService) ToSessionExecute(r FrontendAPIApiToSessionRequest) (*Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4625,7 +4625,7 @@ func (a *FrontendApiService) ToSessionExecute(r FrontendApiApiToSessionRequest) localVarReturnValue *Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.ToSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.ToSession") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4726,33 +4726,33 @@ func (a *FrontendApiService) ToSessionExecute(r FrontendApiApiToSessionRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateLoginFlowRequest struct { +type FrontendAPIApiUpdateLoginFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateLoginFlowBody *UpdateLoginFlowBody xSessionToken *string cookie *string } -func (r FrontendApiApiUpdateLoginFlowRequest) Flow(flow string) FrontendApiApiUpdateLoginFlowRequest { +func (r FrontendAPIApiUpdateLoginFlowRequest) Flow(flow string) FrontendAPIApiUpdateLoginFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateLoginFlowRequest) UpdateLoginFlowBody(updateLoginFlowBody UpdateLoginFlowBody) FrontendApiApiUpdateLoginFlowRequest { +func (r FrontendAPIApiUpdateLoginFlowRequest) UpdateLoginFlowBody(updateLoginFlowBody UpdateLoginFlowBody) FrontendAPIApiUpdateLoginFlowRequest { r.updateLoginFlowBody = &updateLoginFlowBody return r } -func (r FrontendApiApiUpdateLoginFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiUpdateLoginFlowRequest { +func (r FrontendAPIApiUpdateLoginFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiUpdateLoginFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiUpdateLoginFlowRequest) Cookie(cookie string) FrontendApiApiUpdateLoginFlowRequest { +func (r FrontendAPIApiUpdateLoginFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateLoginFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateLoginFlowRequest) Execute() (*SuccessfulNativeLogin, *http.Response, error) { +func (r FrontendAPIApiUpdateLoginFlowRequest) Execute() (*SuccessfulNativeLogin, *http.Response, error) { return r.ApiService.UpdateLoginFlowExecute(r) } @@ -4787,10 +4787,10 @@ Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateLoginFlowRequest + - @return FrontendAPIApiUpdateLoginFlowRequest */ -func (a *FrontendApiService) UpdateLoginFlow(ctx context.Context) FrontendApiApiUpdateLoginFlowRequest { - return FrontendApiApiUpdateLoginFlowRequest{ +func (a *FrontendAPIService) UpdateLoginFlow(ctx context.Context) FrontendAPIApiUpdateLoginFlowRequest { + return FrontendAPIApiUpdateLoginFlowRequest{ ApiService: a, ctx: ctx, } @@ -4800,7 +4800,7 @@ func (a *FrontendApiService) UpdateLoginFlow(ctx context.Context) FrontendApiApi * Execute executes the request * @return SuccessfulNativeLogin */ -func (a *FrontendApiService) UpdateLoginFlowExecute(r FrontendApiApiUpdateLoginFlowRequest) (*SuccessfulNativeLogin, *http.Response, error) { +func (a *FrontendAPIService) UpdateLoginFlowExecute(r FrontendAPIApiUpdateLoginFlowRequest) (*SuccessfulNativeLogin, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -4810,7 +4810,7 @@ func (a *FrontendApiService) UpdateLoginFlowExecute(r FrontendApiApiUpdateLoginF localVarReturnValue *SuccessfulNativeLogin ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateLoginFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateLoginFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4927,28 +4927,28 @@ func (a *FrontendApiService) UpdateLoginFlowExecute(r FrontendApiApiUpdateLoginF return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateLogoutFlowRequest struct { +type FrontendAPIApiUpdateLogoutFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI token *string returnTo *string cookie *string } -func (r FrontendApiApiUpdateLogoutFlowRequest) Token(token string) FrontendApiApiUpdateLogoutFlowRequest { +func (r FrontendAPIApiUpdateLogoutFlowRequest) Token(token string) FrontendAPIApiUpdateLogoutFlowRequest { r.token = &token return r } -func (r FrontendApiApiUpdateLogoutFlowRequest) ReturnTo(returnTo string) FrontendApiApiUpdateLogoutFlowRequest { +func (r FrontendAPIApiUpdateLogoutFlowRequest) ReturnTo(returnTo string) FrontendAPIApiUpdateLogoutFlowRequest { r.returnTo = &returnTo return r } -func (r FrontendApiApiUpdateLogoutFlowRequest) Cookie(cookie string) FrontendApiApiUpdateLogoutFlowRequest { +func (r FrontendAPIApiUpdateLogoutFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateLogoutFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateLogoutFlowRequest) Execute() (*http.Response, error) { +func (r FrontendAPIApiUpdateLogoutFlowRequest) Execute() (*http.Response, error) { return r.ApiService.UpdateLogoutFlowExecute(r) } @@ -4968,10 +4968,10 @@ call the `/self-service/logout/api` URL directly with the Ory Session Token. More information can be found at [Ory Kratos User Logout Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-logout). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateLogoutFlowRequest + - @return FrontendAPIApiUpdateLogoutFlowRequest */ -func (a *FrontendApiService) UpdateLogoutFlow(ctx context.Context) FrontendApiApiUpdateLogoutFlowRequest { - return FrontendApiApiUpdateLogoutFlowRequest{ +func (a *FrontendAPIService) UpdateLogoutFlow(ctx context.Context) FrontendAPIApiUpdateLogoutFlowRequest { + return FrontendAPIApiUpdateLogoutFlowRequest{ ApiService: a, ctx: ctx, } @@ -4980,7 +4980,7 @@ func (a *FrontendApiService) UpdateLogoutFlow(ctx context.Context) FrontendApiAp /* * Execute executes the request */ -func (a *FrontendApiService) UpdateLogoutFlowExecute(r FrontendApiApiUpdateLogoutFlowRequest) (*http.Response, error) { +func (a *FrontendAPIService) UpdateLogoutFlowExecute(r FrontendAPIApiUpdateLogoutFlowRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4989,7 +4989,7 @@ func (a *FrontendApiService) UpdateLogoutFlowExecute(r FrontendApiApiUpdateLogou localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateLogoutFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateLogoutFlow") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5061,33 +5061,33 @@ func (a *FrontendApiService) UpdateLogoutFlowExecute(r FrontendApiApiUpdateLogou return localVarHTTPResponse, nil } -type FrontendApiApiUpdateRecoveryFlowRequest struct { +type FrontendAPIApiUpdateRecoveryFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateRecoveryFlowBody *UpdateRecoveryFlowBody token *string cookie *string } -func (r FrontendApiApiUpdateRecoveryFlowRequest) Flow(flow string) FrontendApiApiUpdateRecoveryFlowRequest { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) Flow(flow string) FrontendAPIApiUpdateRecoveryFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateRecoveryFlowRequest) UpdateRecoveryFlowBody(updateRecoveryFlowBody UpdateRecoveryFlowBody) FrontendApiApiUpdateRecoveryFlowRequest { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) UpdateRecoveryFlowBody(updateRecoveryFlowBody UpdateRecoveryFlowBody) FrontendAPIApiUpdateRecoveryFlowRequest { r.updateRecoveryFlowBody = &updateRecoveryFlowBody return r } -func (r FrontendApiApiUpdateRecoveryFlowRequest) Token(token string) FrontendApiApiUpdateRecoveryFlowRequest { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) Token(token string) FrontendAPIApiUpdateRecoveryFlowRequest { r.token = &token return r } -func (r FrontendApiApiUpdateRecoveryFlowRequest) Cookie(cookie string) FrontendApiApiUpdateRecoveryFlowRequest { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateRecoveryFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { +func (r FrontendAPIApiUpdateRecoveryFlowRequest) Execute() (*RecoveryFlow, *http.Response, error) { return r.ApiService.UpdateRecoveryFlowExecute(r) } @@ -5111,10 +5111,10 @@ a new Recovery Flow ID which contains an error message that the recovery link wa More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateRecoveryFlowRequest + - @return FrontendAPIApiUpdateRecoveryFlowRequest */ -func (a *FrontendApiService) UpdateRecoveryFlow(ctx context.Context) FrontendApiApiUpdateRecoveryFlowRequest { - return FrontendApiApiUpdateRecoveryFlowRequest{ +func (a *FrontendAPIService) UpdateRecoveryFlow(ctx context.Context) FrontendAPIApiUpdateRecoveryFlowRequest { + return FrontendAPIApiUpdateRecoveryFlowRequest{ ApiService: a, ctx: ctx, } @@ -5124,7 +5124,7 @@ func (a *FrontendApiService) UpdateRecoveryFlow(ctx context.Context) FrontendApi * Execute executes the request * @return RecoveryFlow */ -func (a *FrontendApiService) UpdateRecoveryFlowExecute(r FrontendApiApiUpdateRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { +func (a *FrontendAPIService) UpdateRecoveryFlowExecute(r FrontendAPIApiUpdateRecoveryFlowRequest) (*RecoveryFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -5134,7 +5134,7 @@ func (a *FrontendApiService) UpdateRecoveryFlowExecute(r FrontendApiApiUpdateRec localVarReturnValue *RecoveryFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateRecoveryFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateRecoveryFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5251,28 +5251,28 @@ func (a *FrontendApiService) UpdateRecoveryFlowExecute(r FrontendApiApiUpdateRec return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateRegistrationFlowRequest struct { +type FrontendAPIApiUpdateRegistrationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateRegistrationFlowBody *UpdateRegistrationFlowBody cookie *string } -func (r FrontendApiApiUpdateRegistrationFlowRequest) Flow(flow string) FrontendApiApiUpdateRegistrationFlowRequest { +func (r FrontendAPIApiUpdateRegistrationFlowRequest) Flow(flow string) FrontendAPIApiUpdateRegistrationFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateRegistrationFlowRequest) UpdateRegistrationFlowBody(updateRegistrationFlowBody UpdateRegistrationFlowBody) FrontendApiApiUpdateRegistrationFlowRequest { +func (r FrontendAPIApiUpdateRegistrationFlowRequest) UpdateRegistrationFlowBody(updateRegistrationFlowBody UpdateRegistrationFlowBody) FrontendAPIApiUpdateRegistrationFlowRequest { r.updateRegistrationFlowBody = &updateRegistrationFlowBody return r } -func (r FrontendApiApiUpdateRegistrationFlowRequest) Cookie(cookie string) FrontendApiApiUpdateRegistrationFlowRequest { +func (r FrontendAPIApiUpdateRegistrationFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateRegistrationFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateRegistrationFlowRequest) Execute() (*SuccessfulNativeRegistration, *http.Response, error) { +func (r FrontendAPIApiUpdateRegistrationFlowRequest) Execute() (*SuccessfulNativeRegistration, *http.Response, error) { return r.ApiService.UpdateRegistrationFlowExecute(r) } @@ -5308,10 +5308,10 @@ Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Login](https://www.ory.sh/docs/kratos/self-service/flows/user-login) and [User Registration Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-registration). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateRegistrationFlowRequest + - @return FrontendAPIApiUpdateRegistrationFlowRequest */ -func (a *FrontendApiService) UpdateRegistrationFlow(ctx context.Context) FrontendApiApiUpdateRegistrationFlowRequest { - return FrontendApiApiUpdateRegistrationFlowRequest{ +func (a *FrontendAPIService) UpdateRegistrationFlow(ctx context.Context) FrontendAPIApiUpdateRegistrationFlowRequest { + return FrontendAPIApiUpdateRegistrationFlowRequest{ ApiService: a, ctx: ctx, } @@ -5321,7 +5321,7 @@ func (a *FrontendApiService) UpdateRegistrationFlow(ctx context.Context) Fronten * Execute executes the request * @return SuccessfulNativeRegistration */ -func (a *FrontendApiService) UpdateRegistrationFlowExecute(r FrontendApiApiUpdateRegistrationFlowRequest) (*SuccessfulNativeRegistration, *http.Response, error) { +func (a *FrontendAPIService) UpdateRegistrationFlowExecute(r FrontendAPIApiUpdateRegistrationFlowRequest) (*SuccessfulNativeRegistration, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -5331,7 +5331,7 @@ func (a *FrontendApiService) UpdateRegistrationFlowExecute(r FrontendApiApiUpdat localVarReturnValue *SuccessfulNativeRegistration ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateRegistrationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateRegistrationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5445,33 +5445,33 @@ func (a *FrontendApiService) UpdateRegistrationFlowExecute(r FrontendApiApiUpdat return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateSettingsFlowRequest struct { +type FrontendAPIApiUpdateSettingsFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateSettingsFlowBody *UpdateSettingsFlowBody xSessionToken *string cookie *string } -func (r FrontendApiApiUpdateSettingsFlowRequest) Flow(flow string) FrontendApiApiUpdateSettingsFlowRequest { +func (r FrontendAPIApiUpdateSettingsFlowRequest) Flow(flow string) FrontendAPIApiUpdateSettingsFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateSettingsFlowRequest) UpdateSettingsFlowBody(updateSettingsFlowBody UpdateSettingsFlowBody) FrontendApiApiUpdateSettingsFlowRequest { +func (r FrontendAPIApiUpdateSettingsFlowRequest) UpdateSettingsFlowBody(updateSettingsFlowBody UpdateSettingsFlowBody) FrontendAPIApiUpdateSettingsFlowRequest { r.updateSettingsFlowBody = &updateSettingsFlowBody return r } -func (r FrontendApiApiUpdateSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendApiApiUpdateSettingsFlowRequest { +func (r FrontendAPIApiUpdateSettingsFlowRequest) XSessionToken(xSessionToken string) FrontendAPIApiUpdateSettingsFlowRequest { r.xSessionToken = &xSessionToken return r } -func (r FrontendApiApiUpdateSettingsFlowRequest) Cookie(cookie string) FrontendApiApiUpdateSettingsFlowRequest { +func (r FrontendAPIApiUpdateSettingsFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateSettingsFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { +func (r FrontendAPIApiUpdateSettingsFlowRequest) Execute() (*SettingsFlow, *http.Response, error) { return r.ApiService.UpdateSettingsFlowExecute(r) } @@ -5522,10 +5522,10 @@ Most likely used in Social Sign In flows. More information can be found at [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateSettingsFlowRequest + - @return FrontendAPIApiUpdateSettingsFlowRequest */ -func (a *FrontendApiService) UpdateSettingsFlow(ctx context.Context) FrontendApiApiUpdateSettingsFlowRequest { - return FrontendApiApiUpdateSettingsFlowRequest{ +func (a *FrontendAPIService) UpdateSettingsFlow(ctx context.Context) FrontendAPIApiUpdateSettingsFlowRequest { + return FrontendAPIApiUpdateSettingsFlowRequest{ ApiService: a, ctx: ctx, } @@ -5535,7 +5535,7 @@ func (a *FrontendApiService) UpdateSettingsFlow(ctx context.Context) FrontendApi * Execute executes the request * @return SettingsFlow */ -func (a *FrontendApiService) UpdateSettingsFlowExecute(r FrontendApiApiUpdateSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { +func (a *FrontendAPIService) UpdateSettingsFlowExecute(r FrontendAPIApiUpdateSettingsFlowRequest) (*SettingsFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -5545,7 +5545,7 @@ func (a *FrontendApiService) UpdateSettingsFlowExecute(r FrontendApiApiUpdateSet localVarReturnValue *SettingsFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateSettingsFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateSettingsFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5682,33 +5682,33 @@ func (a *FrontendApiService) UpdateSettingsFlowExecute(r FrontendApiApiUpdateSet return localVarReturnValue, localVarHTTPResponse, nil } -type FrontendApiApiUpdateVerificationFlowRequest struct { +type FrontendAPIApiUpdateVerificationFlowRequest struct { ctx context.Context - ApiService FrontendApi + ApiService FrontendAPI flow *string updateVerificationFlowBody *UpdateVerificationFlowBody token *string cookie *string } -func (r FrontendApiApiUpdateVerificationFlowRequest) Flow(flow string) FrontendApiApiUpdateVerificationFlowRequest { +func (r FrontendAPIApiUpdateVerificationFlowRequest) Flow(flow string) FrontendAPIApiUpdateVerificationFlowRequest { r.flow = &flow return r } -func (r FrontendApiApiUpdateVerificationFlowRequest) UpdateVerificationFlowBody(updateVerificationFlowBody UpdateVerificationFlowBody) FrontendApiApiUpdateVerificationFlowRequest { +func (r FrontendAPIApiUpdateVerificationFlowRequest) UpdateVerificationFlowBody(updateVerificationFlowBody UpdateVerificationFlowBody) FrontendAPIApiUpdateVerificationFlowRequest { r.updateVerificationFlowBody = &updateVerificationFlowBody return r } -func (r FrontendApiApiUpdateVerificationFlowRequest) Token(token string) FrontendApiApiUpdateVerificationFlowRequest { +func (r FrontendAPIApiUpdateVerificationFlowRequest) Token(token string) FrontendAPIApiUpdateVerificationFlowRequest { r.token = &token return r } -func (r FrontendApiApiUpdateVerificationFlowRequest) Cookie(cookie string) FrontendApiApiUpdateVerificationFlowRequest { +func (r FrontendAPIApiUpdateVerificationFlowRequest) Cookie(cookie string) FrontendAPIApiUpdateVerificationFlowRequest { r.cookie = &cookie return r } -func (r FrontendApiApiUpdateVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { +func (r FrontendAPIApiUpdateVerificationFlowRequest) Execute() (*VerificationFlow, *http.Response, error) { return r.ApiService.UpdateVerificationFlowExecute(r) } @@ -5732,10 +5732,10 @@ a new Verification Flow ID which contains an error message that the verification More information can be found at [Ory Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return FrontendApiApiUpdateVerificationFlowRequest + - @return FrontendAPIApiUpdateVerificationFlowRequest */ -func (a *FrontendApiService) UpdateVerificationFlow(ctx context.Context) FrontendApiApiUpdateVerificationFlowRequest { - return FrontendApiApiUpdateVerificationFlowRequest{ +func (a *FrontendAPIService) UpdateVerificationFlow(ctx context.Context) FrontendAPIApiUpdateVerificationFlowRequest { + return FrontendAPIApiUpdateVerificationFlowRequest{ ApiService: a, ctx: ctx, } @@ -5745,7 +5745,7 @@ func (a *FrontendApiService) UpdateVerificationFlow(ctx context.Context) Fronten * Execute executes the request * @return VerificationFlow */ -func (a *FrontendApiService) UpdateVerificationFlowExecute(r FrontendApiApiUpdateVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { +func (a *FrontendAPIService) UpdateVerificationFlowExecute(r FrontendAPIApiUpdateVerificationFlowRequest) (*VerificationFlow, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -5755,7 +5755,7 @@ func (a *FrontendApiService) UpdateVerificationFlowExecute(r FrontendApiApiUpdat localVarReturnValue *VerificationFlow ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendApiService.UpdateVerificationFlow") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FrontendAPIService.UpdateVerificationFlow") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/internal/httpclient/api_identity.go b/internal/httpclient/api_identity.go index b48819525a13..47c2eb6cbfc4 100644 --- a/internal/httpclient/api_identity.go +++ b/internal/httpclient/api_identity.go @@ -26,7 +26,7 @@ var ( _ context.Context ) -type IdentityApi interface { +type IdentityAPI interface { /* * BatchPatchIdentities Create multiple identities @@ -36,15 +36,15 @@ type IdentityApi interface { credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities) for instance passwords, social sign in configurations or multifactor methods. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiBatchPatchIdentitiesRequest + * @return IdentityAPIApiBatchPatchIdentitiesRequest */ - BatchPatchIdentities(ctx context.Context) IdentityApiApiBatchPatchIdentitiesRequest + BatchPatchIdentities(ctx context.Context) IdentityAPIApiBatchPatchIdentitiesRequest /* * BatchPatchIdentitiesExecute executes the request * @return BatchPatchIdentitiesResponse */ - BatchPatchIdentitiesExecute(r IdentityApiApiBatchPatchIdentitiesRequest) (*BatchPatchIdentitiesResponse, *http.Response, error) + BatchPatchIdentitiesExecute(r IdentityAPIApiBatchPatchIdentitiesRequest) (*BatchPatchIdentitiesResponse, *http.Response, error) /* * CreateIdentity Create an Identity @@ -52,45 +52,45 @@ type IdentityApi interface { [import credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities) for instance passwords, social sign in configurations or multifactor methods. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiCreateIdentityRequest + * @return IdentityAPIApiCreateIdentityRequest */ - CreateIdentity(ctx context.Context) IdentityApiApiCreateIdentityRequest + CreateIdentity(ctx context.Context) IdentityAPIApiCreateIdentityRequest /* * CreateIdentityExecute executes the request * @return Identity */ - CreateIdentityExecute(r IdentityApiApiCreateIdentityRequest) (*Identity, *http.Response, error) + CreateIdentityExecute(r IdentityAPIApiCreateIdentityRequest) (*Identity, *http.Response, error) /* * CreateRecoveryCodeForIdentity Create a Recovery Code * This endpoint creates a recovery code which should be given to the user in order for them to recover (or activate) their account. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiCreateRecoveryCodeForIdentityRequest + * @return IdentityAPIApiCreateRecoveryCodeForIdentityRequest */ - CreateRecoveryCodeForIdentity(ctx context.Context) IdentityApiApiCreateRecoveryCodeForIdentityRequest + CreateRecoveryCodeForIdentity(ctx context.Context) IdentityAPIApiCreateRecoveryCodeForIdentityRequest /* * CreateRecoveryCodeForIdentityExecute executes the request * @return RecoveryCodeForIdentity */ - CreateRecoveryCodeForIdentityExecute(r IdentityApiApiCreateRecoveryCodeForIdentityRequest) (*RecoveryCodeForIdentity, *http.Response, error) + CreateRecoveryCodeForIdentityExecute(r IdentityAPIApiCreateRecoveryCodeForIdentityRequest) (*RecoveryCodeForIdentity, *http.Response, error) /* * CreateRecoveryLinkForIdentity Create a Recovery Link * This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiCreateRecoveryLinkForIdentityRequest + * @return IdentityAPIApiCreateRecoveryLinkForIdentityRequest */ - CreateRecoveryLinkForIdentity(ctx context.Context) IdentityApiApiCreateRecoveryLinkForIdentityRequest + CreateRecoveryLinkForIdentity(ctx context.Context) IdentityAPIApiCreateRecoveryLinkForIdentityRequest /* * CreateRecoveryLinkForIdentityExecute executes the request * @return RecoveryLinkForIdentity */ - CreateRecoveryLinkForIdentityExecute(r IdentityApiApiCreateRecoveryLinkForIdentityRequest) (*RecoveryLinkForIdentity, *http.Response, error) + CreateRecoveryLinkForIdentityExecute(r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) (*RecoveryLinkForIdentity, *http.Response, error) /* * DeleteIdentity Delete an Identity @@ -99,14 +99,14 @@ type IdentityApi interface { assumed that is has been deleted already. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiDeleteIdentityRequest + * @return IdentityAPIApiDeleteIdentityRequest */ - DeleteIdentity(ctx context.Context, id string) IdentityApiApiDeleteIdentityRequest + DeleteIdentity(ctx context.Context, id string) IdentityAPIApiDeleteIdentityRequest /* * DeleteIdentityExecute executes the request */ - DeleteIdentityExecute(r IdentityApiApiDeleteIdentityRequest) (*http.Response, error) + DeleteIdentityExecute(r IdentityAPIApiDeleteIdentityRequest) (*http.Response, error) /* * DeleteIdentityCredentials Delete a credential for a specific identity @@ -115,42 +115,42 @@ type IdentityApi interface { * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. * @param type_ Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode - * @return IdentityApiApiDeleteIdentityCredentialsRequest + * @return IdentityAPIApiDeleteIdentityCredentialsRequest */ - DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityApiApiDeleteIdentityCredentialsRequest + DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityAPIApiDeleteIdentityCredentialsRequest /* * DeleteIdentityCredentialsExecute executes the request */ - DeleteIdentityCredentialsExecute(r IdentityApiApiDeleteIdentityCredentialsRequest) (*http.Response, error) + DeleteIdentityCredentialsExecute(r IdentityAPIApiDeleteIdentityCredentialsRequest) (*http.Response, error) /* * DeleteIdentitySessions Delete & Invalidate an Identity's Sessions * Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiDeleteIdentitySessionsRequest + * @return IdentityAPIApiDeleteIdentitySessionsRequest */ - DeleteIdentitySessions(ctx context.Context, id string) IdentityApiApiDeleteIdentitySessionsRequest + DeleteIdentitySessions(ctx context.Context, id string) IdentityAPIApiDeleteIdentitySessionsRequest /* * DeleteIdentitySessionsExecute executes the request */ - DeleteIdentitySessionsExecute(r IdentityApiApiDeleteIdentitySessionsRequest) (*http.Response, error) + DeleteIdentitySessionsExecute(r IdentityAPIApiDeleteIdentitySessionsRequest) (*http.Response, error) /* * DisableSession Deactivate a Session * Calling this endpoint deactivates the specified session. Session data is not deleted. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return IdentityApiApiDisableSessionRequest + * @return IdentityAPIApiDisableSessionRequest */ - DisableSession(ctx context.Context, id string) IdentityApiApiDisableSessionRequest + DisableSession(ctx context.Context, id string) IdentityAPIApiDisableSessionRequest /* * DisableSessionExecute executes the request */ - DisableSessionExecute(r IdentityApiApiDisableSessionRequest) (*http.Response, error) + DisableSessionExecute(r IdentityAPIApiDisableSessionRequest) (*http.Response, error) /* * ExtendSession Extend a Session @@ -167,15 +167,15 @@ type IdentityApi interface { Retrieve the session ID from the `/sessions/whoami` endpoint / `toSession` SDK method. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return IdentityApiApiExtendSessionRequest + * @return IdentityAPIApiExtendSessionRequest */ - ExtendSession(ctx context.Context, id string) IdentityApiApiExtendSessionRequest + ExtendSession(ctx context.Context, id string) IdentityAPIApiExtendSessionRequest /* * ExtendSessionExecute executes the request * @return Session */ - ExtendSessionExecute(r IdentityApiApiExtendSessionRequest) (*Session, *http.Response, error) + ExtendSessionExecute(r IdentityAPIApiExtendSessionRequest) (*Session, *http.Response, error) /* * GetIdentity Get an Identity @@ -183,30 +183,30 @@ type IdentityApi interface { include credentials (e.g. social sign in connections) in the response by using the `include_credential` query parameter. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of identity you want to get - * @return IdentityApiApiGetIdentityRequest + * @return IdentityAPIApiGetIdentityRequest */ - GetIdentity(ctx context.Context, id string) IdentityApiApiGetIdentityRequest + GetIdentity(ctx context.Context, id string) IdentityAPIApiGetIdentityRequest /* * GetIdentityExecute executes the request * @return Identity */ - GetIdentityExecute(r IdentityApiApiGetIdentityRequest) (*Identity, *http.Response, error) + GetIdentityExecute(r IdentityAPIApiGetIdentityRequest) (*Identity, *http.Response, error) /* * GetIdentitySchema Get Identity JSON Schema * Return a specific identity schema. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of schema you want to get - * @return IdentityApiApiGetIdentitySchemaRequest + * @return IdentityAPIApiGetIdentitySchemaRequest */ - GetIdentitySchema(ctx context.Context, id string) IdentityApiApiGetIdentitySchemaRequest + GetIdentitySchema(ctx context.Context, id string) IdentityAPIApiGetIdentitySchemaRequest /* * GetIdentitySchemaExecute executes the request * @return map[string]interface{} */ - GetIdentitySchemaExecute(r IdentityApiApiGetIdentitySchemaRequest) (map[string]interface{}, *http.Response, error) + GetIdentitySchemaExecute(r IdentityAPIApiGetIdentitySchemaRequest) (map[string]interface{}, *http.Response, error) /* * GetSession Get Session @@ -215,72 +215,72 @@ type IdentityApi interface { Getting a session object with all specified expandables that exist in an administrative context. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return IdentityApiApiGetSessionRequest + * @return IdentityAPIApiGetSessionRequest */ - GetSession(ctx context.Context, id string) IdentityApiApiGetSessionRequest + GetSession(ctx context.Context, id string) IdentityAPIApiGetSessionRequest /* * GetSessionExecute executes the request * @return Session */ - GetSessionExecute(r IdentityApiApiGetSessionRequest) (*Session, *http.Response, error) + GetSessionExecute(r IdentityAPIApiGetSessionRequest) (*Session, *http.Response, error) /* * ListIdentities List Identities * Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListIdentitiesRequest + * @return IdentityAPIApiListIdentitiesRequest */ - ListIdentities(ctx context.Context) IdentityApiApiListIdentitiesRequest + ListIdentities(ctx context.Context) IdentityAPIApiListIdentitiesRequest /* * ListIdentitiesExecute executes the request * @return []Identity */ - ListIdentitiesExecute(r IdentityApiApiListIdentitiesRequest) ([]Identity, *http.Response, error) + ListIdentitiesExecute(r IdentityAPIApiListIdentitiesRequest) ([]Identity, *http.Response, error) /* * ListIdentitySchemas Get all Identity Schemas * Returns a list of all identity schemas currently in use. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListIdentitySchemasRequest + * @return IdentityAPIApiListIdentitySchemasRequest */ - ListIdentitySchemas(ctx context.Context) IdentityApiApiListIdentitySchemasRequest + ListIdentitySchemas(ctx context.Context) IdentityAPIApiListIdentitySchemasRequest /* * ListIdentitySchemasExecute executes the request * @return []IdentitySchemaContainer */ - ListIdentitySchemasExecute(r IdentityApiApiListIdentitySchemasRequest) ([]IdentitySchemaContainer, *http.Response, error) + ListIdentitySchemasExecute(r IdentityAPIApiListIdentitySchemasRequest) ([]IdentitySchemaContainer, *http.Response, error) /* * ListIdentitySessions List an Identity's Sessions * This endpoint returns all sessions that belong to the given Identity. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiListIdentitySessionsRequest + * @return IdentityAPIApiListIdentitySessionsRequest */ - ListIdentitySessions(ctx context.Context, id string) IdentityApiApiListIdentitySessionsRequest + ListIdentitySessions(ctx context.Context, id string) IdentityAPIApiListIdentitySessionsRequest /* * ListIdentitySessionsExecute executes the request * @return []Session */ - ListIdentitySessionsExecute(r IdentityApiApiListIdentitySessionsRequest) ([]Session, *http.Response, error) + ListIdentitySessionsExecute(r IdentityAPIApiListIdentitySessionsRequest) ([]Session, *http.Response, error) /* * ListSessions List All Sessions * Listing all sessions that exist. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListSessionsRequest + * @return IdentityAPIApiListSessionsRequest */ - ListSessions(ctx context.Context) IdentityApiApiListSessionsRequest + ListSessions(ctx context.Context) IdentityAPIApiListSessionsRequest /* * ListSessionsExecute executes the request * @return []Session */ - ListSessionsExecute(r IdentityApiApiListSessionsRequest) ([]Session, *http.Response, error) + ListSessionsExecute(r IdentityAPIApiListSessionsRequest) ([]Session, *http.Response, error) /* * PatchIdentity Patch an Identity @@ -288,15 +288,15 @@ type IdentityApi interface { The fields `id`, `stateChangedAt` and `credentials` can not be updated using this method. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of identity you want to update - * @return IdentityApiApiPatchIdentityRequest + * @return IdentityAPIApiPatchIdentityRequest */ - PatchIdentity(ctx context.Context, id string) IdentityApiApiPatchIdentityRequest + PatchIdentity(ctx context.Context, id string) IdentityAPIApiPatchIdentityRequest /* * PatchIdentityExecute executes the request * @return Identity */ - PatchIdentityExecute(r IdentityApiApiPatchIdentityRequest) (*Identity, *http.Response, error) + PatchIdentityExecute(r IdentityAPIApiPatchIdentityRequest) (*Identity, *http.Response, error) /* * UpdateIdentity Update an Identity @@ -304,32 +304,32 @@ type IdentityApi interface { payload (except credentials) is expected. It is possible to update the identity's credentials as well. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of identity you want to update - * @return IdentityApiApiUpdateIdentityRequest + * @return IdentityAPIApiUpdateIdentityRequest */ - UpdateIdentity(ctx context.Context, id string) IdentityApiApiUpdateIdentityRequest + UpdateIdentity(ctx context.Context, id string) IdentityAPIApiUpdateIdentityRequest /* * UpdateIdentityExecute executes the request * @return Identity */ - UpdateIdentityExecute(r IdentityApiApiUpdateIdentityRequest) (*Identity, *http.Response, error) + UpdateIdentityExecute(r IdentityAPIApiUpdateIdentityRequest) (*Identity, *http.Response, error) } -// IdentityApiService IdentityApi service -type IdentityApiService service +// IdentityAPIService IdentityAPI service +type IdentityAPIService service -type IdentityApiApiBatchPatchIdentitiesRequest struct { +type IdentityAPIApiBatchPatchIdentitiesRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI patchIdentitiesBody *PatchIdentitiesBody } -func (r IdentityApiApiBatchPatchIdentitiesRequest) PatchIdentitiesBody(patchIdentitiesBody PatchIdentitiesBody) IdentityApiApiBatchPatchIdentitiesRequest { +func (r IdentityAPIApiBatchPatchIdentitiesRequest) PatchIdentitiesBody(patchIdentitiesBody PatchIdentitiesBody) IdentityAPIApiBatchPatchIdentitiesRequest { r.patchIdentitiesBody = &patchIdentitiesBody return r } -func (r IdentityApiApiBatchPatchIdentitiesRequest) Execute() (*BatchPatchIdentitiesResponse, *http.Response, error) { +func (r IdentityAPIApiBatchPatchIdentitiesRequest) Execute() (*BatchPatchIdentitiesResponse, *http.Response, error) { return r.ApiService.BatchPatchIdentitiesExecute(r) } @@ -342,10 +342,10 @@ This endpoint can also be used to [import credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities) for instance passwords, social sign in configurations or multifactor methods. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return IdentityApiApiBatchPatchIdentitiesRequest + - @return IdentityAPIApiBatchPatchIdentitiesRequest */ -func (a *IdentityApiService) BatchPatchIdentities(ctx context.Context) IdentityApiApiBatchPatchIdentitiesRequest { - return IdentityApiApiBatchPatchIdentitiesRequest{ +func (a *IdentityAPIService) BatchPatchIdentities(ctx context.Context) IdentityAPIApiBatchPatchIdentitiesRequest { + return IdentityAPIApiBatchPatchIdentitiesRequest{ ApiService: a, ctx: ctx, } @@ -355,7 +355,7 @@ func (a *IdentityApiService) BatchPatchIdentities(ctx context.Context) IdentityA * Execute executes the request * @return BatchPatchIdentitiesResponse */ -func (a *IdentityApiService) BatchPatchIdentitiesExecute(r IdentityApiApiBatchPatchIdentitiesRequest) (*BatchPatchIdentitiesResponse, *http.Response, error) { +func (a *IdentityAPIService) BatchPatchIdentitiesExecute(r IdentityAPIApiBatchPatchIdentitiesRequest) (*BatchPatchIdentitiesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} @@ -365,7 +365,7 @@ func (a *IdentityApiService) BatchPatchIdentitiesExecute(r IdentityApiApiBatchPa localVarReturnValue *BatchPatchIdentitiesResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.BatchPatchIdentities") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.BatchPatchIdentities") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -473,18 +473,18 @@ func (a *IdentityApiService) BatchPatchIdentitiesExecute(r IdentityApiApiBatchPa return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiCreateIdentityRequest struct { +type IdentityAPIApiCreateIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI createIdentityBody *CreateIdentityBody } -func (r IdentityApiApiCreateIdentityRequest) CreateIdentityBody(createIdentityBody CreateIdentityBody) IdentityApiApiCreateIdentityRequest { +func (r IdentityAPIApiCreateIdentityRequest) CreateIdentityBody(createIdentityBody CreateIdentityBody) IdentityAPIApiCreateIdentityRequest { r.createIdentityBody = &createIdentityBody return r } -func (r IdentityApiApiCreateIdentityRequest) Execute() (*Identity, *http.Response, error) { +func (r IdentityAPIApiCreateIdentityRequest) Execute() (*Identity, *http.Response, error) { return r.ApiService.CreateIdentityExecute(r) } @@ -495,10 +495,10 @@ func (r IdentityApiApiCreateIdentityRequest) Execute() (*Identity, *http.Respons [import credentials](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities) for instance passwords, social sign in configurations or multifactor methods. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return IdentityApiApiCreateIdentityRequest + - @return IdentityAPIApiCreateIdentityRequest */ -func (a *IdentityApiService) CreateIdentity(ctx context.Context) IdentityApiApiCreateIdentityRequest { - return IdentityApiApiCreateIdentityRequest{ +func (a *IdentityAPIService) CreateIdentity(ctx context.Context) IdentityAPIApiCreateIdentityRequest { + return IdentityAPIApiCreateIdentityRequest{ ApiService: a, ctx: ctx, } @@ -508,7 +508,7 @@ func (a *IdentityApiService) CreateIdentity(ctx context.Context) IdentityApiApiC * Execute executes the request * @return Identity */ -func (a *IdentityApiService) CreateIdentityExecute(r IdentityApiApiCreateIdentityRequest) (*Identity, *http.Response, error) { +func (a *IdentityAPIService) CreateIdentityExecute(r IdentityAPIApiCreateIdentityRequest) (*Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -518,7 +518,7 @@ func (a *IdentityApiService) CreateIdentityExecute(r IdentityApiApiCreateIdentit localVarReturnValue *Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.CreateIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.CreateIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -626,18 +626,18 @@ func (a *IdentityApiService) CreateIdentityExecute(r IdentityApiApiCreateIdentit return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiCreateRecoveryCodeForIdentityRequest struct { +type IdentityAPIApiCreateRecoveryCodeForIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI createRecoveryCodeForIdentityBody *CreateRecoveryCodeForIdentityBody } -func (r IdentityApiApiCreateRecoveryCodeForIdentityRequest) CreateRecoveryCodeForIdentityBody(createRecoveryCodeForIdentityBody CreateRecoveryCodeForIdentityBody) IdentityApiApiCreateRecoveryCodeForIdentityRequest { +func (r IdentityAPIApiCreateRecoveryCodeForIdentityRequest) CreateRecoveryCodeForIdentityBody(createRecoveryCodeForIdentityBody CreateRecoveryCodeForIdentityBody) IdentityAPIApiCreateRecoveryCodeForIdentityRequest { r.createRecoveryCodeForIdentityBody = &createRecoveryCodeForIdentityBody return r } -func (r IdentityApiApiCreateRecoveryCodeForIdentityRequest) Execute() (*RecoveryCodeForIdentity, *http.Response, error) { +func (r IdentityAPIApiCreateRecoveryCodeForIdentityRequest) Execute() (*RecoveryCodeForIdentity, *http.Response, error) { return r.ApiService.CreateRecoveryCodeForIdentityExecute(r) } @@ -647,10 +647,10 @@ func (r IdentityApiApiCreateRecoveryCodeForIdentityRequest) Execute() (*Recovery (or activate) their account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return IdentityApiApiCreateRecoveryCodeForIdentityRequest + - @return IdentityAPIApiCreateRecoveryCodeForIdentityRequest */ -func (a *IdentityApiService) CreateRecoveryCodeForIdentity(ctx context.Context) IdentityApiApiCreateRecoveryCodeForIdentityRequest { - return IdentityApiApiCreateRecoveryCodeForIdentityRequest{ +func (a *IdentityAPIService) CreateRecoveryCodeForIdentity(ctx context.Context) IdentityAPIApiCreateRecoveryCodeForIdentityRequest { + return IdentityAPIApiCreateRecoveryCodeForIdentityRequest{ ApiService: a, ctx: ctx, } @@ -660,7 +660,7 @@ func (a *IdentityApiService) CreateRecoveryCodeForIdentity(ctx context.Context) * Execute executes the request * @return RecoveryCodeForIdentity */ -func (a *IdentityApiService) CreateRecoveryCodeForIdentityExecute(r IdentityApiApiCreateRecoveryCodeForIdentityRequest) (*RecoveryCodeForIdentity, *http.Response, error) { +func (a *IdentityAPIService) CreateRecoveryCodeForIdentityExecute(r IdentityAPIApiCreateRecoveryCodeForIdentityRequest) (*RecoveryCodeForIdentity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -670,7 +670,7 @@ func (a *IdentityApiService) CreateRecoveryCodeForIdentityExecute(r IdentityApiA localVarReturnValue *RecoveryCodeForIdentity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.CreateRecoveryCodeForIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.CreateRecoveryCodeForIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -778,23 +778,23 @@ func (a *IdentityApiService) CreateRecoveryCodeForIdentityExecute(r IdentityApiA return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiCreateRecoveryLinkForIdentityRequest struct { +type IdentityAPIApiCreateRecoveryLinkForIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI returnTo *string createRecoveryLinkForIdentityBody *CreateRecoveryLinkForIdentityBody } -func (r IdentityApiApiCreateRecoveryLinkForIdentityRequest) ReturnTo(returnTo string) IdentityApiApiCreateRecoveryLinkForIdentityRequest { +func (r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) ReturnTo(returnTo string) IdentityAPIApiCreateRecoveryLinkForIdentityRequest { r.returnTo = &returnTo return r } -func (r IdentityApiApiCreateRecoveryLinkForIdentityRequest) CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody CreateRecoveryLinkForIdentityBody) IdentityApiApiCreateRecoveryLinkForIdentityRequest { +func (r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody CreateRecoveryLinkForIdentityBody) IdentityAPIApiCreateRecoveryLinkForIdentityRequest { r.createRecoveryLinkForIdentityBody = &createRecoveryLinkForIdentityBody return r } -func (r IdentityApiApiCreateRecoveryLinkForIdentityRequest) Execute() (*RecoveryLinkForIdentity, *http.Response, error) { +func (r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) Execute() (*RecoveryLinkForIdentity, *http.Response, error) { return r.ApiService.CreateRecoveryLinkForIdentityExecute(r) } @@ -804,10 +804,10 @@ func (r IdentityApiApiCreateRecoveryLinkForIdentityRequest) Execute() (*Recovery (or activate) their account. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return IdentityApiApiCreateRecoveryLinkForIdentityRequest + - @return IdentityAPIApiCreateRecoveryLinkForIdentityRequest */ -func (a *IdentityApiService) CreateRecoveryLinkForIdentity(ctx context.Context) IdentityApiApiCreateRecoveryLinkForIdentityRequest { - return IdentityApiApiCreateRecoveryLinkForIdentityRequest{ +func (a *IdentityAPIService) CreateRecoveryLinkForIdentity(ctx context.Context) IdentityAPIApiCreateRecoveryLinkForIdentityRequest { + return IdentityAPIApiCreateRecoveryLinkForIdentityRequest{ ApiService: a, ctx: ctx, } @@ -817,7 +817,7 @@ func (a *IdentityApiService) CreateRecoveryLinkForIdentity(ctx context.Context) * Execute executes the request * @return RecoveryLinkForIdentity */ -func (a *IdentityApiService) CreateRecoveryLinkForIdentityExecute(r IdentityApiApiCreateRecoveryLinkForIdentityRequest) (*RecoveryLinkForIdentity, *http.Response, error) { +func (a *IdentityAPIService) CreateRecoveryLinkForIdentityExecute(r IdentityAPIApiCreateRecoveryLinkForIdentityRequest) (*RecoveryLinkForIdentity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -827,7 +827,7 @@ func (a *IdentityApiService) CreateRecoveryLinkForIdentityExecute(r IdentityApiA localVarReturnValue *RecoveryLinkForIdentity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.CreateRecoveryLinkForIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.CreateRecoveryLinkForIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -938,13 +938,13 @@ func (a *IdentityApiService) CreateRecoveryLinkForIdentityExecute(r IdentityApiA return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiDeleteIdentityRequest struct { +type IdentityAPIApiDeleteIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiDeleteIdentityRequest) Execute() (*http.Response, error) { +func (r IdentityAPIApiDeleteIdentityRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteIdentityExecute(r) } @@ -956,10 +956,10 @@ This endpoint returns 204 when the identity was deleted or when the identity was assumed that is has been deleted already. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the identity's ID. - - @return IdentityApiApiDeleteIdentityRequest + - @return IdentityAPIApiDeleteIdentityRequest */ -func (a *IdentityApiService) DeleteIdentity(ctx context.Context, id string) IdentityApiApiDeleteIdentityRequest { - return IdentityApiApiDeleteIdentityRequest{ +func (a *IdentityAPIService) DeleteIdentity(ctx context.Context, id string) IdentityAPIApiDeleteIdentityRequest { + return IdentityAPIApiDeleteIdentityRequest{ ApiService: a, ctx: ctx, id: id, @@ -969,7 +969,7 @@ func (a *IdentityApiService) DeleteIdentity(ctx context.Context, id string) Iden /* * Execute executes the request */ -func (a *IdentityApiService) DeleteIdentityExecute(r IdentityApiApiDeleteIdentityRequest) (*http.Response, error) { +func (a *IdentityAPIService) DeleteIdentityExecute(r IdentityAPIApiDeleteIdentityRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -978,7 +978,7 @@ func (a *IdentityApiService) DeleteIdentityExecute(r IdentityApiApiDeleteIdentit localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.DeleteIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.DeleteIdentity") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1066,20 +1066,20 @@ func (a *IdentityApiService) DeleteIdentityExecute(r IdentityApiApiDeleteIdentit return localVarHTTPResponse, nil } -type IdentityApiApiDeleteIdentityCredentialsRequest struct { +type IdentityAPIApiDeleteIdentityCredentialsRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string type_ string identifier *string } -func (r IdentityApiApiDeleteIdentityCredentialsRequest) Identifier(identifier string) IdentityApiApiDeleteIdentityCredentialsRequest { +func (r IdentityAPIApiDeleteIdentityCredentialsRequest) Identifier(identifier string) IdentityAPIApiDeleteIdentityCredentialsRequest { r.identifier = &identifier return r } -func (r IdentityApiApiDeleteIdentityCredentialsRequest) Execute() (*http.Response, error) { +func (r IdentityAPIApiDeleteIdentityCredentialsRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteIdentityCredentialsExecute(r) } @@ -1091,10 +1091,10 @@ You cannot delete password or code auth credentials through this API. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the identity's ID. - @param type_ Type is the type of credentials to delete. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth passkey CredentialsTypePasskey profile CredentialsTypeProfile link_recovery CredentialsTypeRecoveryLink CredentialsTypeRecoveryLink is a special credential type linked to the link strategy (recovery flow). It is not used within the credentials object itself. code_recovery CredentialsTypeRecoveryCode - - @return IdentityApiApiDeleteIdentityCredentialsRequest + - @return IdentityAPIApiDeleteIdentityCredentialsRequest */ -func (a *IdentityApiService) DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityApiApiDeleteIdentityCredentialsRequest { - return IdentityApiApiDeleteIdentityCredentialsRequest{ +func (a *IdentityAPIService) DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityAPIApiDeleteIdentityCredentialsRequest { + return IdentityAPIApiDeleteIdentityCredentialsRequest{ ApiService: a, ctx: ctx, id: id, @@ -1105,7 +1105,7 @@ func (a *IdentityApiService) DeleteIdentityCredentials(ctx context.Context, id s /* * Execute executes the request */ -func (a *IdentityApiService) DeleteIdentityCredentialsExecute(r IdentityApiApiDeleteIdentityCredentialsRequest) (*http.Response, error) { +func (a *IdentityAPIService) DeleteIdentityCredentialsExecute(r IdentityAPIApiDeleteIdentityCredentialsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -1114,7 +1114,7 @@ func (a *IdentityApiService) DeleteIdentityCredentialsExecute(r IdentityApiApiDe localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.DeleteIdentityCredentials") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.DeleteIdentityCredentials") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1206,13 +1206,13 @@ func (a *IdentityApiService) DeleteIdentityCredentialsExecute(r IdentityApiApiDe return localVarHTTPResponse, nil } -type IdentityApiApiDeleteIdentitySessionsRequest struct { +type IdentityAPIApiDeleteIdentitySessionsRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiDeleteIdentitySessionsRequest) Execute() (*http.Response, error) { +func (r IdentityAPIApiDeleteIdentitySessionsRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteIdentitySessionsExecute(r) } @@ -1221,10 +1221,10 @@ func (r IdentityApiApiDeleteIdentitySessionsRequest) Execute() (*http.Response, * Calling this endpoint irrecoverably and permanently deletes and invalidates all sessions that belong to the given Identity. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiDeleteIdentitySessionsRequest + * @return IdentityAPIApiDeleteIdentitySessionsRequest */ -func (a *IdentityApiService) DeleteIdentitySessions(ctx context.Context, id string) IdentityApiApiDeleteIdentitySessionsRequest { - return IdentityApiApiDeleteIdentitySessionsRequest{ +func (a *IdentityAPIService) DeleteIdentitySessions(ctx context.Context, id string) IdentityAPIApiDeleteIdentitySessionsRequest { + return IdentityAPIApiDeleteIdentitySessionsRequest{ ApiService: a, ctx: ctx, id: id, @@ -1234,7 +1234,7 @@ func (a *IdentityApiService) DeleteIdentitySessions(ctx context.Context, id stri /* * Execute executes the request */ -func (a *IdentityApiService) DeleteIdentitySessionsExecute(r IdentityApiApiDeleteIdentitySessionsRequest) (*http.Response, error) { +func (a *IdentityAPIService) DeleteIdentitySessionsExecute(r IdentityAPIApiDeleteIdentitySessionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -1243,7 +1243,7 @@ func (a *IdentityApiService) DeleteIdentitySessionsExecute(r IdentityApiApiDelet localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.DeleteIdentitySessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.DeleteIdentitySessions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1351,13 +1351,13 @@ func (a *IdentityApiService) DeleteIdentitySessionsExecute(r IdentityApiApiDelet return localVarHTTPResponse, nil } -type IdentityApiApiDisableSessionRequest struct { +type IdentityAPIApiDisableSessionRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiDisableSessionRequest) Execute() (*http.Response, error) { +func (r IdentityAPIApiDisableSessionRequest) Execute() (*http.Response, error) { return r.ApiService.DisableSessionExecute(r) } @@ -1366,10 +1366,10 @@ func (r IdentityApiApiDisableSessionRequest) Execute() (*http.Response, error) { * Calling this endpoint deactivates the specified session. Session data is not deleted. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the session's ID. - * @return IdentityApiApiDisableSessionRequest + * @return IdentityAPIApiDisableSessionRequest */ -func (a *IdentityApiService) DisableSession(ctx context.Context, id string) IdentityApiApiDisableSessionRequest { - return IdentityApiApiDisableSessionRequest{ +func (a *IdentityAPIService) DisableSession(ctx context.Context, id string) IdentityAPIApiDisableSessionRequest { + return IdentityAPIApiDisableSessionRequest{ ApiService: a, ctx: ctx, id: id, @@ -1379,7 +1379,7 @@ func (a *IdentityApiService) DisableSession(ctx context.Context, id string) Iden /* * Execute executes the request */ -func (a *IdentityApiService) DisableSessionExecute(r IdentityApiApiDisableSessionRequest) (*http.Response, error) { +func (a *IdentityAPIService) DisableSessionExecute(r IdentityAPIApiDisableSessionRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -1388,7 +1388,7 @@ func (a *IdentityApiService) DisableSessionExecute(r IdentityApiApiDisableSessio localVarFileBytes []byte ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.DisableSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.DisableSession") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1486,13 +1486,13 @@ func (a *IdentityApiService) DisableSessionExecute(r IdentityApiApiDisableSessio return localVarHTTPResponse, nil } -type IdentityApiApiExtendSessionRequest struct { +type IdentityAPIApiExtendSessionRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiExtendSessionRequest) Execute() (*Session, *http.Response, error) { +func (r IdentityAPIApiExtendSessionRequest) Execute() (*Session, *http.Response, error) { return r.ApiService.ExtendSessionExecute(r) } @@ -1512,10 +1512,10 @@ scenarios. This endpoint also returns 404 errors if the session does not exist. Retrieve the session ID from the `/sessions/whoami` endpoint / `toSession` SDK method. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the session's ID. - - @return IdentityApiApiExtendSessionRequest + - @return IdentityAPIApiExtendSessionRequest */ -func (a *IdentityApiService) ExtendSession(ctx context.Context, id string) IdentityApiApiExtendSessionRequest { - return IdentityApiApiExtendSessionRequest{ +func (a *IdentityAPIService) ExtendSession(ctx context.Context, id string) IdentityAPIApiExtendSessionRequest { + return IdentityAPIApiExtendSessionRequest{ ApiService: a, ctx: ctx, id: id, @@ -1526,7 +1526,7 @@ func (a *IdentityApiService) ExtendSession(ctx context.Context, id string) Ident * Execute executes the request * @return Session */ -func (a *IdentityApiService) ExtendSessionExecute(r IdentityApiApiExtendSessionRequest) (*Session, *http.Response, error) { +func (a *IdentityAPIService) ExtendSessionExecute(r IdentityAPIApiExtendSessionRequest) (*Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} @@ -1536,7 +1536,7 @@ func (a *IdentityApiService) ExtendSessionExecute(r IdentityApiApiExtendSessionR localVarReturnValue *Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ExtendSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ExtendSession") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1643,19 +1643,19 @@ func (a *IdentityApiService) ExtendSessionExecute(r IdentityApiApiExtendSessionR return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiGetIdentityRequest struct { +type IdentityAPIApiGetIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string includeCredential *[]string } -func (r IdentityApiApiGetIdentityRequest) IncludeCredential(includeCredential []string) IdentityApiApiGetIdentityRequest { +func (r IdentityAPIApiGetIdentityRequest) IncludeCredential(includeCredential []string) IdentityAPIApiGetIdentityRequest { r.includeCredential = &includeCredential return r } -func (r IdentityApiApiGetIdentityRequest) Execute() (*Identity, *http.Response, error) { +func (r IdentityAPIApiGetIdentityRequest) Execute() (*Identity, *http.Response, error) { return r.ApiService.GetIdentityExecute(r) } @@ -1666,10 +1666,10 @@ func (r IdentityApiApiGetIdentityRequest) Execute() (*Identity, *http.Response, include credentials (e.g. social sign in connections) in the response by using the `include_credential` query parameter. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID must be set to the ID of identity you want to get - - @return IdentityApiApiGetIdentityRequest + - @return IdentityAPIApiGetIdentityRequest */ -func (a *IdentityApiService) GetIdentity(ctx context.Context, id string) IdentityApiApiGetIdentityRequest { - return IdentityApiApiGetIdentityRequest{ +func (a *IdentityAPIService) GetIdentity(ctx context.Context, id string) IdentityAPIApiGetIdentityRequest { + return IdentityAPIApiGetIdentityRequest{ ApiService: a, ctx: ctx, id: id, @@ -1680,7 +1680,7 @@ func (a *IdentityApiService) GetIdentity(ctx context.Context, id string) Identit * Execute executes the request * @return Identity */ -func (a *IdentityApiService) GetIdentityExecute(r IdentityApiApiGetIdentityRequest) (*Identity, *http.Response, error) { +func (a *IdentityAPIService) GetIdentityExecute(r IdentityAPIApiGetIdentityRequest) (*Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1690,7 +1690,7 @@ func (a *IdentityApiService) GetIdentityExecute(r IdentityApiApiGetIdentityReque localVarReturnValue *Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.GetIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.GetIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1798,13 +1798,13 @@ func (a *IdentityApiService) GetIdentityExecute(r IdentityApiApiGetIdentityReque return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiGetIdentitySchemaRequest struct { +type IdentityAPIApiGetIdentitySchemaRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string } -func (r IdentityApiApiGetIdentitySchemaRequest) Execute() (map[string]interface{}, *http.Response, error) { +func (r IdentityAPIApiGetIdentitySchemaRequest) Execute() (map[string]interface{}, *http.Response, error) { return r.ApiService.GetIdentitySchemaExecute(r) } @@ -1813,10 +1813,10 @@ func (r IdentityApiApiGetIdentitySchemaRequest) Execute() (map[string]interface{ * Return a specific identity schema. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID must be set to the ID of schema you want to get - * @return IdentityApiApiGetIdentitySchemaRequest + * @return IdentityAPIApiGetIdentitySchemaRequest */ -func (a *IdentityApiService) GetIdentitySchema(ctx context.Context, id string) IdentityApiApiGetIdentitySchemaRequest { - return IdentityApiApiGetIdentitySchemaRequest{ +func (a *IdentityAPIService) GetIdentitySchema(ctx context.Context, id string) IdentityAPIApiGetIdentitySchemaRequest { + return IdentityAPIApiGetIdentitySchemaRequest{ ApiService: a, ctx: ctx, id: id, @@ -1827,7 +1827,7 @@ func (a *IdentityApiService) GetIdentitySchema(ctx context.Context, id string) I * Execute executes the request * @return map[string]interface{} */ -func (a *IdentityApiService) GetIdentitySchemaExecute(r IdentityApiApiGetIdentitySchemaRequest) (map[string]interface{}, *http.Response, error) { +func (a *IdentityAPIService) GetIdentitySchemaExecute(r IdentityAPIApiGetIdentitySchemaRequest) (map[string]interface{}, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1837,7 +1837,7 @@ func (a *IdentityApiService) GetIdentitySchemaExecute(r IdentityApiApiGetIdentit localVarReturnValue map[string]interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.GetIdentitySchema") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.GetIdentitySchema") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1920,19 +1920,19 @@ func (a *IdentityApiService) GetIdentitySchemaExecute(r IdentityApiApiGetIdentit return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiGetSessionRequest struct { +type IdentityAPIApiGetSessionRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string expand *[]string } -func (r IdentityApiApiGetSessionRequest) Expand(expand []string) IdentityApiApiGetSessionRequest { +func (r IdentityAPIApiGetSessionRequest) Expand(expand []string) IdentityAPIApiGetSessionRequest { r.expand = &expand return r } -func (r IdentityApiApiGetSessionRequest) Execute() (*Session, *http.Response, error) { +func (r IdentityAPIApiGetSessionRequest) Execute() (*Session, *http.Response, error) { return r.ApiService.GetSessionExecute(r) } @@ -1943,10 +1943,10 @@ func (r IdentityApiApiGetSessionRequest) Execute() (*Session, *http.Response, er Getting a session object with all specified expandables that exist in an administrative context. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID is the session's ID. - - @return IdentityApiApiGetSessionRequest + - @return IdentityAPIApiGetSessionRequest */ -func (a *IdentityApiService) GetSession(ctx context.Context, id string) IdentityApiApiGetSessionRequest { - return IdentityApiApiGetSessionRequest{ +func (a *IdentityAPIService) GetSession(ctx context.Context, id string) IdentityAPIApiGetSessionRequest { + return IdentityAPIApiGetSessionRequest{ ApiService: a, ctx: ctx, id: id, @@ -1957,7 +1957,7 @@ func (a *IdentityApiService) GetSession(ctx context.Context, id string) Identity * Execute executes the request * @return Session */ -func (a *IdentityApiService) GetSessionExecute(r IdentityApiApiGetSessionRequest) (*Session, *http.Response, error) { +func (a *IdentityAPIService) GetSessionExecute(r IdentityAPIApiGetSessionRequest) (*Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1967,7 +1967,7 @@ func (a *IdentityApiService) GetSessionExecute(r IdentityApiApiGetSessionRequest localVarReturnValue *Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.GetSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.GetSession") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2075,9 +2075,9 @@ func (a *IdentityApiService) GetSessionExecute(r IdentityApiApiGetSessionRequest return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiListIdentitiesRequest struct { +type IdentityAPIApiListIdentitiesRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI perPage *int64 page *int64 pageSize *int64 @@ -2089,44 +2089,44 @@ type IdentityApiApiListIdentitiesRequest struct { includeCredential *[]string } -func (r IdentityApiApiListIdentitiesRequest) PerPage(perPage int64) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) PerPage(perPage int64) IdentityAPIApiListIdentitiesRequest { r.perPage = &perPage return r } -func (r IdentityApiApiListIdentitiesRequest) Page(page int64) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) Page(page int64) IdentityAPIApiListIdentitiesRequest { r.page = &page return r } -func (r IdentityApiApiListIdentitiesRequest) PageSize(pageSize int64) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) PageSize(pageSize int64) IdentityAPIApiListIdentitiesRequest { r.pageSize = &pageSize return r } -func (r IdentityApiApiListIdentitiesRequest) PageToken(pageToken string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) PageToken(pageToken string) IdentityAPIApiListIdentitiesRequest { r.pageToken = &pageToken return r } -func (r IdentityApiApiListIdentitiesRequest) Consistency(consistency string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) Consistency(consistency string) IdentityAPIApiListIdentitiesRequest { r.consistency = &consistency return r } -func (r IdentityApiApiListIdentitiesRequest) Ids(ids []string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) Ids(ids []string) IdentityAPIApiListIdentitiesRequest { r.ids = &ids return r } -func (r IdentityApiApiListIdentitiesRequest) CredentialsIdentifier(credentialsIdentifier string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) CredentialsIdentifier(credentialsIdentifier string) IdentityAPIApiListIdentitiesRequest { r.credentialsIdentifier = &credentialsIdentifier return r } -func (r IdentityApiApiListIdentitiesRequest) PreviewCredentialsIdentifierSimilar(previewCredentialsIdentifierSimilar string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) PreviewCredentialsIdentifierSimilar(previewCredentialsIdentifierSimilar string) IdentityAPIApiListIdentitiesRequest { r.previewCredentialsIdentifierSimilar = &previewCredentialsIdentifierSimilar return r } -func (r IdentityApiApiListIdentitiesRequest) IncludeCredential(includeCredential []string) IdentityApiApiListIdentitiesRequest { +func (r IdentityAPIApiListIdentitiesRequest) IncludeCredential(includeCredential []string) IdentityAPIApiListIdentitiesRequest { r.includeCredential = &includeCredential return r } -func (r IdentityApiApiListIdentitiesRequest) Execute() ([]Identity, *http.Response, error) { +func (r IdentityAPIApiListIdentitiesRequest) Execute() ([]Identity, *http.Response, error) { return r.ApiService.ListIdentitiesExecute(r) } @@ -2134,10 +2134,10 @@ func (r IdentityApiApiListIdentitiesRequest) Execute() ([]Identity, *http.Respon * ListIdentities List Identities * Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListIdentitiesRequest + * @return IdentityAPIApiListIdentitiesRequest */ -func (a *IdentityApiService) ListIdentities(ctx context.Context) IdentityApiApiListIdentitiesRequest { - return IdentityApiApiListIdentitiesRequest{ +func (a *IdentityAPIService) ListIdentities(ctx context.Context) IdentityAPIApiListIdentitiesRequest { + return IdentityAPIApiListIdentitiesRequest{ ApiService: a, ctx: ctx, } @@ -2147,7 +2147,7 @@ func (a *IdentityApiService) ListIdentities(ctx context.Context) IdentityApiApiL * Execute executes the request * @return []Identity */ -func (a *IdentityApiService) ListIdentitiesExecute(r IdentityApiApiListIdentitiesRequest) ([]Identity, *http.Response, error) { +func (a *IdentityAPIService) ListIdentitiesExecute(r IdentityAPIApiListIdentitiesRequest) ([]Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2157,7 +2157,7 @@ func (a *IdentityApiService) ListIdentitiesExecute(r IdentityApiApiListIdentitie localVarReturnValue []Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ListIdentities") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ListIdentities") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2286,33 +2286,33 @@ func (a *IdentityApiService) ListIdentitiesExecute(r IdentityApiApiListIdentitie return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiListIdentitySchemasRequest struct { +type IdentityAPIApiListIdentitySchemasRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI perPage *int64 page *int64 pageSize *int64 pageToken *string } -func (r IdentityApiApiListIdentitySchemasRequest) PerPage(perPage int64) IdentityApiApiListIdentitySchemasRequest { +func (r IdentityAPIApiListIdentitySchemasRequest) PerPage(perPage int64) IdentityAPIApiListIdentitySchemasRequest { r.perPage = &perPage return r } -func (r IdentityApiApiListIdentitySchemasRequest) Page(page int64) IdentityApiApiListIdentitySchemasRequest { +func (r IdentityAPIApiListIdentitySchemasRequest) Page(page int64) IdentityAPIApiListIdentitySchemasRequest { r.page = &page return r } -func (r IdentityApiApiListIdentitySchemasRequest) PageSize(pageSize int64) IdentityApiApiListIdentitySchemasRequest { +func (r IdentityAPIApiListIdentitySchemasRequest) PageSize(pageSize int64) IdentityAPIApiListIdentitySchemasRequest { r.pageSize = &pageSize return r } -func (r IdentityApiApiListIdentitySchemasRequest) PageToken(pageToken string) IdentityApiApiListIdentitySchemasRequest { +func (r IdentityAPIApiListIdentitySchemasRequest) PageToken(pageToken string) IdentityAPIApiListIdentitySchemasRequest { r.pageToken = &pageToken return r } -func (r IdentityApiApiListIdentitySchemasRequest) Execute() ([]IdentitySchemaContainer, *http.Response, error) { +func (r IdentityAPIApiListIdentitySchemasRequest) Execute() ([]IdentitySchemaContainer, *http.Response, error) { return r.ApiService.ListIdentitySchemasExecute(r) } @@ -2320,10 +2320,10 @@ func (r IdentityApiApiListIdentitySchemasRequest) Execute() ([]IdentitySchemaCon * ListIdentitySchemas Get all Identity Schemas * Returns a list of all identity schemas currently in use. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListIdentitySchemasRequest + * @return IdentityAPIApiListIdentitySchemasRequest */ -func (a *IdentityApiService) ListIdentitySchemas(ctx context.Context) IdentityApiApiListIdentitySchemasRequest { - return IdentityApiApiListIdentitySchemasRequest{ +func (a *IdentityAPIService) ListIdentitySchemas(ctx context.Context) IdentityAPIApiListIdentitySchemasRequest { + return IdentityAPIApiListIdentitySchemasRequest{ ApiService: a, ctx: ctx, } @@ -2333,7 +2333,7 @@ func (a *IdentityApiService) ListIdentitySchemas(ctx context.Context) IdentityAp * Execute executes the request * @return []IdentitySchemaContainer */ -func (a *IdentityApiService) ListIdentitySchemasExecute(r IdentityApiApiListIdentitySchemasRequest) ([]IdentitySchemaContainer, *http.Response, error) { +func (a *IdentityAPIService) ListIdentitySchemasExecute(r IdentityAPIApiListIdentitySchemasRequest) ([]IdentitySchemaContainer, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2343,7 +2343,7 @@ func (a *IdentityApiService) ListIdentitySchemasExecute(r IdentityApiApiListIden localVarReturnValue []IdentitySchemaContainer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ListIdentitySchemas") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ListIdentitySchemas") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2427,9 +2427,9 @@ func (a *IdentityApiService) ListIdentitySchemasExecute(r IdentityApiApiListIden return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiListIdentitySessionsRequest struct { +type IdentityAPIApiListIdentitySessionsRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string perPage *int64 page *int64 @@ -2438,28 +2438,28 @@ type IdentityApiApiListIdentitySessionsRequest struct { active *bool } -func (r IdentityApiApiListIdentitySessionsRequest) PerPage(perPage int64) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) PerPage(perPage int64) IdentityAPIApiListIdentitySessionsRequest { r.perPage = &perPage return r } -func (r IdentityApiApiListIdentitySessionsRequest) Page(page int64) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) Page(page int64) IdentityAPIApiListIdentitySessionsRequest { r.page = &page return r } -func (r IdentityApiApiListIdentitySessionsRequest) PageSize(pageSize int64) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) PageSize(pageSize int64) IdentityAPIApiListIdentitySessionsRequest { r.pageSize = &pageSize return r } -func (r IdentityApiApiListIdentitySessionsRequest) PageToken(pageToken string) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) PageToken(pageToken string) IdentityAPIApiListIdentitySessionsRequest { r.pageToken = &pageToken return r } -func (r IdentityApiApiListIdentitySessionsRequest) Active(active bool) IdentityApiApiListIdentitySessionsRequest { +func (r IdentityAPIApiListIdentitySessionsRequest) Active(active bool) IdentityAPIApiListIdentitySessionsRequest { r.active = &active return r } -func (r IdentityApiApiListIdentitySessionsRequest) Execute() ([]Session, *http.Response, error) { +func (r IdentityAPIApiListIdentitySessionsRequest) Execute() ([]Session, *http.Response, error) { return r.ApiService.ListIdentitySessionsExecute(r) } @@ -2468,10 +2468,10 @@ func (r IdentityApiApiListIdentitySessionsRequest) Execute() ([]Session, *http.R * This endpoint returns all sessions that belong to the given Identity. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id ID is the identity's ID. - * @return IdentityApiApiListIdentitySessionsRequest + * @return IdentityAPIApiListIdentitySessionsRequest */ -func (a *IdentityApiService) ListIdentitySessions(ctx context.Context, id string) IdentityApiApiListIdentitySessionsRequest { - return IdentityApiApiListIdentitySessionsRequest{ +func (a *IdentityAPIService) ListIdentitySessions(ctx context.Context, id string) IdentityAPIApiListIdentitySessionsRequest { + return IdentityAPIApiListIdentitySessionsRequest{ ApiService: a, ctx: ctx, id: id, @@ -2482,7 +2482,7 @@ func (a *IdentityApiService) ListIdentitySessions(ctx context.Context, id string * Execute executes the request * @return []Session */ -func (a *IdentityApiService) ListIdentitySessionsExecute(r IdentityApiApiListIdentitySessionsRequest) ([]Session, *http.Response, error) { +func (a *IdentityAPIService) ListIdentitySessionsExecute(r IdentityAPIApiListIdentitySessionsRequest) ([]Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2492,7 +2492,7 @@ func (a *IdentityApiService) ListIdentitySessionsExecute(r IdentityApiApiListIde localVarReturnValue []Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ListIdentitySessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ListIdentitySessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2614,33 +2614,33 @@ func (a *IdentityApiService) ListIdentitySessionsExecute(r IdentityApiApiListIde return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiListSessionsRequest struct { +type IdentityAPIApiListSessionsRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI pageSize *int64 pageToken *string active *bool expand *[]string } -func (r IdentityApiApiListSessionsRequest) PageSize(pageSize int64) IdentityApiApiListSessionsRequest { +func (r IdentityAPIApiListSessionsRequest) PageSize(pageSize int64) IdentityAPIApiListSessionsRequest { r.pageSize = &pageSize return r } -func (r IdentityApiApiListSessionsRequest) PageToken(pageToken string) IdentityApiApiListSessionsRequest { +func (r IdentityAPIApiListSessionsRequest) PageToken(pageToken string) IdentityAPIApiListSessionsRequest { r.pageToken = &pageToken return r } -func (r IdentityApiApiListSessionsRequest) Active(active bool) IdentityApiApiListSessionsRequest { +func (r IdentityAPIApiListSessionsRequest) Active(active bool) IdentityAPIApiListSessionsRequest { r.active = &active return r } -func (r IdentityApiApiListSessionsRequest) Expand(expand []string) IdentityApiApiListSessionsRequest { +func (r IdentityAPIApiListSessionsRequest) Expand(expand []string) IdentityAPIApiListSessionsRequest { r.expand = &expand return r } -func (r IdentityApiApiListSessionsRequest) Execute() ([]Session, *http.Response, error) { +func (r IdentityAPIApiListSessionsRequest) Execute() ([]Session, *http.Response, error) { return r.ApiService.ListSessionsExecute(r) } @@ -2648,10 +2648,10 @@ func (r IdentityApiApiListSessionsRequest) Execute() ([]Session, *http.Response, * ListSessions List All Sessions * Listing all sessions that exist. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return IdentityApiApiListSessionsRequest + * @return IdentityAPIApiListSessionsRequest */ -func (a *IdentityApiService) ListSessions(ctx context.Context) IdentityApiApiListSessionsRequest { - return IdentityApiApiListSessionsRequest{ +func (a *IdentityAPIService) ListSessions(ctx context.Context) IdentityAPIApiListSessionsRequest { + return IdentityAPIApiListSessionsRequest{ ApiService: a, ctx: ctx, } @@ -2661,7 +2661,7 @@ func (a *IdentityApiService) ListSessions(ctx context.Context) IdentityApiApiLis * Execute executes the request * @return []Session */ -func (a *IdentityApiService) ListSessionsExecute(r IdentityApiApiListSessionsRequest) ([]Session, *http.Response, error) { +func (a *IdentityAPIService) ListSessionsExecute(r IdentityAPIApiListSessionsRequest) ([]Session, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2671,7 +2671,7 @@ func (a *IdentityApiService) ListSessionsExecute(r IdentityApiApiListSessionsReq localVarReturnValue []Session ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.ListSessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.ListSessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2787,19 +2787,19 @@ func (a *IdentityApiService) ListSessionsExecute(r IdentityApiApiListSessionsReq return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiPatchIdentityRequest struct { +type IdentityAPIApiPatchIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string jsonPatch *[]JsonPatch } -func (r IdentityApiApiPatchIdentityRequest) JsonPatch(jsonPatch []JsonPatch) IdentityApiApiPatchIdentityRequest { +func (r IdentityAPIApiPatchIdentityRequest) JsonPatch(jsonPatch []JsonPatch) IdentityAPIApiPatchIdentityRequest { r.jsonPatch = &jsonPatch return r } -func (r IdentityApiApiPatchIdentityRequest) Execute() (*Identity, *http.Response, error) { +func (r IdentityAPIApiPatchIdentityRequest) Execute() (*Identity, *http.Response, error) { return r.ApiService.PatchIdentityExecute(r) } @@ -2810,10 +2810,10 @@ func (r IdentityApiApiPatchIdentityRequest) Execute() (*Identity, *http.Response The fields `id`, `stateChangedAt` and `credentials` can not be updated using this method. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID must be set to the ID of identity you want to update - - @return IdentityApiApiPatchIdentityRequest + - @return IdentityAPIApiPatchIdentityRequest */ -func (a *IdentityApiService) PatchIdentity(ctx context.Context, id string) IdentityApiApiPatchIdentityRequest { - return IdentityApiApiPatchIdentityRequest{ +func (a *IdentityAPIService) PatchIdentity(ctx context.Context, id string) IdentityAPIApiPatchIdentityRequest { + return IdentityAPIApiPatchIdentityRequest{ ApiService: a, ctx: ctx, id: id, @@ -2824,7 +2824,7 @@ func (a *IdentityApiService) PatchIdentity(ctx context.Context, id string) Ident * Execute executes the request * @return Identity */ -func (a *IdentityApiService) PatchIdentityExecute(r IdentityApiApiPatchIdentityRequest) (*Identity, *http.Response, error) { +func (a *IdentityAPIService) PatchIdentityExecute(r IdentityAPIApiPatchIdentityRequest) (*Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} @@ -2834,7 +2834,7 @@ func (a *IdentityApiService) PatchIdentityExecute(r IdentityApiApiPatchIdentityR localVarReturnValue *Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.PatchIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.PatchIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2953,19 +2953,19 @@ func (a *IdentityApiService) PatchIdentityExecute(r IdentityApiApiPatchIdentityR return localVarReturnValue, localVarHTTPResponse, nil } -type IdentityApiApiUpdateIdentityRequest struct { +type IdentityAPIApiUpdateIdentityRequest struct { ctx context.Context - ApiService IdentityApi + ApiService IdentityAPI id string updateIdentityBody *UpdateIdentityBody } -func (r IdentityApiApiUpdateIdentityRequest) UpdateIdentityBody(updateIdentityBody UpdateIdentityBody) IdentityApiApiUpdateIdentityRequest { +func (r IdentityAPIApiUpdateIdentityRequest) UpdateIdentityBody(updateIdentityBody UpdateIdentityBody) IdentityAPIApiUpdateIdentityRequest { r.updateIdentityBody = &updateIdentityBody return r } -func (r IdentityApiApiUpdateIdentityRequest) Execute() (*Identity, *http.Response, error) { +func (r IdentityAPIApiUpdateIdentityRequest) Execute() (*Identity, *http.Response, error) { return r.ApiService.UpdateIdentityExecute(r) } @@ -2976,10 +2976,10 @@ func (r IdentityApiApiUpdateIdentityRequest) Execute() (*Identity, *http.Respons payload (except credentials) is expected. It is possible to update the identity's credentials as well. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id ID must be set to the ID of identity you want to update - - @return IdentityApiApiUpdateIdentityRequest + - @return IdentityAPIApiUpdateIdentityRequest */ -func (a *IdentityApiService) UpdateIdentity(ctx context.Context, id string) IdentityApiApiUpdateIdentityRequest { - return IdentityApiApiUpdateIdentityRequest{ +func (a *IdentityAPIService) UpdateIdentity(ctx context.Context, id string) IdentityAPIApiUpdateIdentityRequest { + return IdentityAPIApiUpdateIdentityRequest{ ApiService: a, ctx: ctx, id: id, @@ -2990,7 +2990,7 @@ func (a *IdentityApiService) UpdateIdentity(ctx context.Context, id string) Iden * Execute executes the request * @return Identity */ -func (a *IdentityApiService) UpdateIdentityExecute(r IdentityApiApiUpdateIdentityRequest) (*Identity, *http.Response, error) { +func (a *IdentityAPIService) UpdateIdentityExecute(r IdentityAPIApiUpdateIdentityRequest) (*Identity, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3000,7 +3000,7 @@ func (a *IdentityApiService) UpdateIdentityExecute(r IdentityApiApiUpdateIdentit localVarReturnValue *Identity ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityApiService.UpdateIdentity") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityAPIService.UpdateIdentity") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/internal/httpclient/api_metadata.go b/internal/httpclient/api_metadata.go index e5ac1a854d5d..4bef0d5cb6ca 100644 --- a/internal/httpclient/api_metadata.go +++ b/internal/httpclient/api_metadata.go @@ -24,7 +24,7 @@ var ( _ context.Context ) -type MetadataApi interface { +type MetadataAPI interface { /* * GetVersion Return Running Software Version. @@ -36,15 +36,15 @@ type MetadataApi interface { Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return MetadataApiApiGetVersionRequest + * @return MetadataAPIApiGetVersionRequest */ - GetVersion(ctx context.Context) MetadataApiApiGetVersionRequest + GetVersion(ctx context.Context) MetadataAPIApiGetVersionRequest /* * GetVersionExecute executes the request * @return GetVersion200Response */ - GetVersionExecute(r MetadataApiApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) + GetVersionExecute(r MetadataAPIApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) /* * IsAlive Check HTTP Server Status @@ -57,15 +57,15 @@ type MetadataApi interface { Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return MetadataApiApiIsAliveRequest + * @return MetadataAPIApiIsAliveRequest */ - IsAlive(ctx context.Context) MetadataApiApiIsAliveRequest + IsAlive(ctx context.Context) MetadataAPIApiIsAliveRequest /* * IsAliveExecute executes the request * @return IsAlive200Response */ - IsAliveExecute(r MetadataApiApiIsAliveRequest) (*IsAlive200Response, *http.Response, error) + IsAliveExecute(r MetadataAPIApiIsAliveRequest) (*IsAlive200Response, *http.Response, error) /* * IsReady Check HTTP Server and Database Status @@ -78,26 +78,26 @@ type MetadataApi interface { Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return MetadataApiApiIsReadyRequest + * @return MetadataAPIApiIsReadyRequest */ - IsReady(ctx context.Context) MetadataApiApiIsReadyRequest + IsReady(ctx context.Context) MetadataAPIApiIsReadyRequest /* * IsReadyExecute executes the request * @return IsAlive200Response */ - IsReadyExecute(r MetadataApiApiIsReadyRequest) (*IsAlive200Response, *http.Response, error) + IsReadyExecute(r MetadataAPIApiIsReadyRequest) (*IsAlive200Response, *http.Response, error) } -// MetadataApiService MetadataApi service -type MetadataApiService service +// MetadataAPIService MetadataAPI service +type MetadataAPIService service -type MetadataApiApiGetVersionRequest struct { +type MetadataAPIApiGetVersionRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiApiGetVersionRequest) Execute() (*GetVersion200Response, *http.Response, error) { +func (r MetadataAPIApiGetVersionRequest) Execute() (*GetVersion200Response, *http.Response, error) { return r.ApiService.GetVersionExecute(r) } @@ -111,10 +111,10 @@ If the service supports TLS Edge Termination, this endpoint does not require the Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return MetadataApiApiGetVersionRequest + - @return MetadataAPIApiGetVersionRequest */ -func (a *MetadataApiService) GetVersion(ctx context.Context) MetadataApiApiGetVersionRequest { - return MetadataApiApiGetVersionRequest{ +func (a *MetadataAPIService) GetVersion(ctx context.Context) MetadataAPIApiGetVersionRequest { + return MetadataAPIApiGetVersionRequest{ ApiService: a, ctx: ctx, } @@ -124,7 +124,7 @@ func (a *MetadataApiService) GetVersion(ctx context.Context) MetadataApiApiGetVe * Execute executes the request * @return GetVersion200Response */ -func (a *MetadataApiService) GetVersionExecute(r MetadataApiApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) { +func (a *MetadataAPIService) GetVersionExecute(r MetadataAPIApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -134,7 +134,7 @@ func (a *MetadataApiService) GetVersionExecute(r MetadataApiApiGetVersionRequest localVarReturnValue *GetVersion200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.GetVersion") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataAPIService.GetVersion") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -199,12 +199,12 @@ func (a *MetadataApiService) GetVersionExecute(r MetadataApiApiGetVersionRequest return localVarReturnValue, localVarHTTPResponse, nil } -type MetadataApiApiIsAliveRequest struct { +type MetadataAPIApiIsAliveRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiApiIsAliveRequest) Execute() (*IsAlive200Response, *http.Response, error) { +func (r MetadataAPIApiIsAliveRequest) Execute() (*IsAlive200Response, *http.Response, error) { return r.ApiService.IsAliveExecute(r) } @@ -220,10 +220,10 @@ If the service supports TLS Edge Termination, this endpoint does not require the Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return MetadataApiApiIsAliveRequest + - @return MetadataAPIApiIsAliveRequest */ -func (a *MetadataApiService) IsAlive(ctx context.Context) MetadataApiApiIsAliveRequest { - return MetadataApiApiIsAliveRequest{ +func (a *MetadataAPIService) IsAlive(ctx context.Context) MetadataAPIApiIsAliveRequest { + return MetadataAPIApiIsAliveRequest{ ApiService: a, ctx: ctx, } @@ -233,7 +233,7 @@ func (a *MetadataApiService) IsAlive(ctx context.Context) MetadataApiApiIsAliveR * Execute executes the request * @return IsAlive200Response */ -func (a *MetadataApiService) IsAliveExecute(r MetadataApiApiIsAliveRequest) (*IsAlive200Response, *http.Response, error) { +func (a *MetadataAPIService) IsAliveExecute(r MetadataAPIApiIsAliveRequest) (*IsAlive200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -243,7 +243,7 @@ func (a *MetadataApiService) IsAliveExecute(r MetadataApiApiIsAliveRequest) (*Is localVarReturnValue *IsAlive200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.IsAlive") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataAPIService.IsAlive") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -315,12 +315,12 @@ func (a *MetadataApiService) IsAliveExecute(r MetadataApiApiIsAliveRequest) (*Is return localVarReturnValue, localVarHTTPResponse, nil } -type MetadataApiApiIsReadyRequest struct { +type MetadataAPIApiIsReadyRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiApiIsReadyRequest) Execute() (*IsAlive200Response, *http.Response, error) { +func (r MetadataAPIApiIsReadyRequest) Execute() (*IsAlive200Response, *http.Response, error) { return r.ApiService.IsReadyExecute(r) } @@ -336,10 +336,10 @@ If the service supports TLS Edge Termination, this endpoint does not require the Be aware that if you are running multiple nodes of Ory Kratos, the health status will never refer to the cluster state, only to a single instance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - - @return MetadataApiApiIsReadyRequest + - @return MetadataAPIApiIsReadyRequest */ -func (a *MetadataApiService) IsReady(ctx context.Context) MetadataApiApiIsReadyRequest { - return MetadataApiApiIsReadyRequest{ +func (a *MetadataAPIService) IsReady(ctx context.Context) MetadataAPIApiIsReadyRequest { + return MetadataAPIApiIsReadyRequest{ ApiService: a, ctx: ctx, } @@ -349,7 +349,7 @@ func (a *MetadataApiService) IsReady(ctx context.Context) MetadataApiApiIsReadyR * Execute executes the request * @return IsAlive200Response */ -func (a *MetadataApiService) IsReadyExecute(r MetadataApiApiIsReadyRequest) (*IsAlive200Response, *http.Response, error) { +func (a *MetadataAPIService) IsReadyExecute(r MetadataAPIApiIsReadyRequest) (*IsAlive200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -359,7 +359,7 @@ func (a *MetadataApiService) IsReadyExecute(r MetadataApiApiIsReadyRequest) (*Is localVarReturnValue *IsAlive200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataApiService.IsReady") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MetadataAPIService.IsReady") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/internal/httpclient/client.go b/internal/httpclient/client.go index 949a0e51ab35..14ee5d7619a6 100644 --- a/internal/httpclient/client.go +++ b/internal/httpclient/client.go @@ -49,13 +49,13 @@ type APIClient struct { // API Services - CourierApi CourierApi + CourierAPI CourierAPI - FrontendApi FrontendApi + FrontendAPI FrontendAPI - IdentityApi IdentityApi + IdentityAPI IdentityAPI - MetadataApi MetadataApi + MetadataAPI MetadataAPI } type service struct { @@ -74,10 +74,10 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services - c.CourierApi = (*CourierApiService)(&c.common) - c.FrontendApi = (*FrontendApiService)(&c.common) - c.IdentityApi = (*IdentityApiService)(&c.common) - c.MetadataApi = (*MetadataApiService)(&c.common) + c.CourierAPI = (*CourierAPIService)(&c.common) + c.FrontendAPI = (*FrontendAPIService)(&c.common) + c.IdentityAPI = (*IdentityAPIService)(&c.common) + c.MetadataAPI = (*MetadataAPIService)(&c.common) return c } diff --git a/internal/testhelpers/selfservice_login.go b/internal/testhelpers/selfservice_login.go index 1ef8db2e58ba..d8279ebfeca4 100644 --- a/internal/testhelpers/selfservice_login.go +++ b/internal/testhelpers/selfservice_login.go @@ -174,7 +174,7 @@ func InitializeLoginFlowViaBrowser(t *testing.T, client *http.Client, ts *httpte } require.NotEmpty(t, flowID) - rs, r, err := publicClient.FrontendApi.GetLoginFlow(context.Background()).Id(flowID).Execute() + rs, r, err := publicClient.FrontendAPI.GetLoginFlow(context.Background()).Id(flowID).Execute() if expectGetError { require.Error(t, err) require.Nil(t, rs) @@ -190,7 +190,7 @@ func InitializeLoginFlowViaAPIWithContext(t *testing.T, ctx context.Context, cli publicClient := NewSDKCustomClient(ts, client) o := new(initFlowOptions).apply(opts) - req := publicClient.FrontendApi.CreateNativeLoginFlow(ctx).Refresh(forced) + req := publicClient.FrontendAPI.CreateNativeLoginFlow(ctx).Refresh(forced) if o.aal != "" { req = req.Aal(string(o.aal)) } @@ -245,7 +245,7 @@ func LoginMakeRequestWithContext( func GetLoginFlow(t *testing.T, client *http.Client, ts *httptest.Server, flowID string) *kratos.LoginFlow { publicClient := NewSDKCustomClient(ts, client) - rs, _, err := publicClient.FrontendApi.GetLoginFlow(context.Background()).Id(flowID).Execute() + rs, _, err := publicClient.FrontendAPI.GetLoginFlow(context.Background()).Id(flowID).Execute() require.NoError(t, err) return rs } diff --git a/internal/testhelpers/selfservice_recovery.go b/internal/testhelpers/selfservice_recovery.go index c1ff66794553..eaed184ed8ca 100644 --- a/internal/testhelpers/selfservice_recovery.go +++ b/internal/testhelpers/selfservice_recovery.go @@ -43,7 +43,7 @@ func GetVerificationFlow(t *testing.T, client *http.Client, ts *httptest.Server) require.NoError(t, err) require.NoError(t, res.Body.Close()) - rs, _, err := publicClient.FrontendApi.GetVerificationFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() + rs, _, err := publicClient.FrontendAPI.GetVerificationFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err, "%s", res.Request.URL.String()) assert.NotEmpty(t, rs.Active) @@ -70,7 +70,7 @@ func InitializeVerificationFlowViaBrowser(t *testing.T, client *http.Client, isS return &f } - rs, _, err := publicClient.FrontendApi.GetVerificationFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() + rs, _, err := publicClient.FrontendAPI.GetVerificationFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err) assert.NotEmpty(t, rs.Active) @@ -80,7 +80,7 @@ func InitializeVerificationFlowViaBrowser(t *testing.T, client *http.Client, isS func InitializeVerificationFlowViaAPI(t *testing.T, client *http.Client, ts *httptest.Server) *kratos.VerificationFlow { publicClient := NewSDKCustomClient(ts, client) - rs, _, err := publicClient.FrontendApi.CreateNativeVerificationFlow(context.Background()).Execute() + rs, _, err := publicClient.FrontendAPI.CreateNativeVerificationFlow(context.Background()).Execute() require.NoError(t, err) assert.NotEmpty(t, rs.Active) diff --git a/internal/testhelpers/selfservice_registration.go b/internal/testhelpers/selfservice_registration.go index 0cab8517e541..3f3f900a3000 100644 --- a/internal/testhelpers/selfservice_registration.go +++ b/internal/testhelpers/selfservice_registration.go @@ -65,7 +65,7 @@ func InitializeRegistrationFlowViaBrowser(t *testing.T, client *http.Client, ts flowID = gjson.GetBytes(body, "id").String() } - rs, _, err := NewSDKCustomClient(ts, client).FrontendApi.GetRegistrationFlow(context.Background()).Id(flowID).Execute() + rs, _, err := NewSDKCustomClient(ts, client).FrontendAPI.GetRegistrationFlow(context.Background()).Id(flowID).Execute() if expectGetError { require.Error(t, err) require.Nil(t, rs) @@ -77,14 +77,14 @@ func InitializeRegistrationFlowViaBrowser(t *testing.T, client *http.Client, ts } func InitializeRegistrationFlowViaAPI(t *testing.T, client *http.Client, ts *httptest.Server) *kratos.RegistrationFlow { - rs, _, err := NewSDKCustomClient(ts, client).FrontendApi.CreateNativeRegistrationFlow(context.Background()).Execute() + rs, _, err := NewSDKCustomClient(ts, client).FrontendAPI.CreateNativeRegistrationFlow(context.Background()).Execute() require.NoError(t, err) assert.Empty(t, rs.Active) return rs } func GetRegistrationFlow(t *testing.T, client *http.Client, ts *httptest.Server, flowID string) *kratos.RegistrationFlow { - rs, _, err := NewSDKCustomClient(ts, client).FrontendApi.GetRegistrationFlow(context.Background()).Id(flowID).Execute() + rs, _, err := NewSDKCustomClient(ts, client).FrontendAPI.GetRegistrationFlow(context.Background()).Id(flowID).Execute() require.NoError(t, err) assert.Empty(t, rs.Active) return rs diff --git a/internal/testhelpers/selfservice_settings.go b/internal/testhelpers/selfservice_settings.go index cf3cdad15866..c46c0eeb757d 100644 --- a/internal/testhelpers/selfservice_settings.go +++ b/internal/testhelpers/selfservice_settings.go @@ -67,7 +67,7 @@ func InitializeSettingsFlowViaBrowser(t *testing.T, client *http.Client, isSPA b require.NoError(t, res.Body.Close()) - rs, res, err := publicClient.FrontendApi.GetSettingsFlow(context.Background()).Id(flowID).Execute() + rs, res, err := publicClient.FrontendAPI.GetSettingsFlow(context.Background()).Id(flowID).Execute() require.NoError(t, err, "%s", ioutilx.MustReadAll(res.Body)) assert.Empty(t, rs.Active) @@ -77,7 +77,7 @@ func InitializeSettingsFlowViaBrowser(t *testing.T, client *http.Client, isSPA b func InitializeSettingsFlowViaAPI(t *testing.T, client *http.Client, ts *httptest.Server) *kratos.SettingsFlow { publicClient := NewSDKCustomClient(ts, client) - rs, _, err := publicClient.FrontendApi.CreateNativeSettingsFlow(context.Background()).Execute() + rs, _, err := publicClient.FrontendAPI.CreateNativeSettingsFlow(context.Background()).Execute() require.NoError(t, err) assert.Empty(t, rs.Active) @@ -158,7 +158,7 @@ func NewSettingsLoginAcceptAPIServer(t *testing.T, publicClient *kratos.APIClien conf.MustSet(r.Context(), config.ViperKeySelfServiceSettingsPrivilegedAuthenticationAfter, "5m") - res, _, err := publicClient.FrontendApi.GetLoginFlow(context.Background()).Id(r.URL.Query().Get("flow")).Execute() + res, _, err := publicClient.FrontendAPI.GetLoginFlow(context.Background()).Id(r.URL.Query().Get("flow")).Execute() require.NoError(t, err) require.NotEmpty(t, res.RequestUrl) diff --git a/internal/testhelpers/selfservice_verification.go b/internal/testhelpers/selfservice_verification.go index 9786c8210e73..fd0419d2be61 100644 --- a/internal/testhelpers/selfservice_verification.go +++ b/internal/testhelpers/selfservice_verification.go @@ -98,7 +98,7 @@ func GetRecoveryFlowForType(t *testing.T, client *http.Client, ts *httptest.Serv } require.NotEmpty(t, flowID, "expected to receive a flow id, got none. %s", ioutilx.MustReadAll(res.Body)) - rs, _, err := publicClient.FrontendApi.GetRecoveryFlow(context.Background()). + rs, _, err := publicClient.FrontendAPI.GetRecoveryFlow(context.Background()). Id(flowID). Execute() require.NoError(t, err, "expected no error when fetching recovery flow: %s", err) @@ -136,7 +136,7 @@ func InitializeRecoveryFlowViaBrowser(t *testing.T, client *http.Client, isSPA b } require.NoError(t, res.Body.Close()) - rs, _, err := publicClient.FrontendApi.GetRecoveryFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() + rs, _, err := publicClient.FrontendAPI.GetRecoveryFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err) assert.NotEmpty(t, rs.Active) @@ -146,7 +146,7 @@ func InitializeRecoveryFlowViaBrowser(t *testing.T, client *http.Client, isSPA b func InitializeRecoveryFlowViaAPI(t *testing.T, client *http.Client, ts *httptest.Server) *kratos.RecoveryFlow { publicClient := NewSDKCustomClient(ts, client) - rs, _, err := publicClient.FrontendApi.CreateNativeRecoveryFlow(context.Background()).Execute() + rs, _, err := publicClient.FrontendAPI.CreateNativeRecoveryFlow(context.Background()).Execute() require.NoError(t, err) assert.NotEmpty(t, rs.Active) diff --git a/selfservice/flow/login/error_test.go b/selfservice/flow/login/error_test.go index e53f831e3891..20481cf290f9 100644 --- a/selfservice/flow/login/error_test.go +++ b/selfservice/flow/login/error_test.go @@ -92,7 +92,7 @@ func TestHandleError(t *testing.T) { defer res.Body.Close() require.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowErrorURL(ctx).String()+"?id=") - sse, _, err := sdk.FrontendApi.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() + sse, _, err := sdk.FrontendAPI.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() require.NoError(t, err) return sse.Error, nil diff --git a/selfservice/flow/recovery/error_test.go b/selfservice/flow/recovery/error_test.go index 432d149a04f1..6a7414050d6e 100644 --- a/selfservice/flow/recovery/error_test.go +++ b/selfservice/flow/recovery/error_test.go @@ -88,7 +88,7 @@ func TestHandleError(t *testing.T) { defer res.Body.Close() require.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowErrorURL(ctx).String()+"?id=") - sse, _, err := sdk.FrontendApi.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() + sse, _, err := sdk.FrontendAPI.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() require.NoError(t, err) return sse.Error, nil @@ -346,7 +346,7 @@ func TestHandleError_WithContinueWith(t *testing.T) { defer res.Body.Close() require.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowErrorURL(ctx).String()+"?id=") - sse, _, err := sdk.FrontendApi.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() + sse, _, err := sdk.FrontendAPI.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() require.NoError(t, err) return sse.Error, nil diff --git a/selfservice/flow/registration/error_test.go b/selfservice/flow/registration/error_test.go index 4b5464f88652..02fdd9fb1e4c 100644 --- a/selfservice/flow/registration/error_test.go +++ b/selfservice/flow/registration/error_test.go @@ -87,7 +87,7 @@ func TestHandleError(t *testing.T) { defer res.Body.Close() require.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowErrorURL(ctx).String()+"?id=") - sse, _, err := sdk.FrontendApi.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() + sse, _, err := sdk.FrontendAPI.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() require.NoError(t, err) return sse.Error, nil diff --git a/selfservice/flow/settings/error_test.go b/selfservice/flow/settings/error_test.go index 5cdebc400df6..1a2c32e9c5c0 100644 --- a/selfservice/flow/settings/error_test.go +++ b/selfservice/flow/settings/error_test.go @@ -101,7 +101,7 @@ func TestHandleError(t *testing.T) { defer res.Body.Close() require.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowErrorURL(ctx).String()+"?id=") - sse, _, err := sdk.FrontendApi.GetFlowError(context.Background()). + sse, _, err := sdk.FrontendAPI.GetFlowError(context.Background()). Id(res.Request.URL.Query().Get("id")).Execute() require.NoError(t, err) diff --git a/selfservice/flow/settings/handler_test.go b/selfservice/flow/settings/handler_test.go index 584a7f3e5535..60920c101b19 100644 --- a/selfservice/flow/settings/handler_test.go +++ b/selfservice/flow/settings/handler_test.go @@ -334,7 +334,7 @@ func TestHandler(t *testing.T) { t.Run("endpoint=fetch", func(t *testing.T) { t.Run("description=fetching a non-existent flow should return a 404 error", func(t *testing.T) { - _, _, err := testhelpers.NewSDKCustomClient(publicTS, otherUser).FrontendApi.GetSettingsFlow(context.Background()).Id("i-do-not-exist").Execute() + _, _, err := testhelpers.NewSDKCustomClient(publicTS, otherUser).FrontendAPI.GetSettingsFlow(context.Background()).Id("i-do-not-exist").Execute() require.Error(t, err) require.IsTypef(t, new(kratos.GenericOpenAPIError), err, "%T", err) @@ -345,7 +345,7 @@ func TestHandler(t *testing.T) { pr := newExpiredFlow() require.NoError(t, reg.SettingsFlowPersister().CreateSettingsFlow(context.Background(), pr)) - _, _, err := testhelpers.NewSDKCustomClient(publicTS, primaryUser).FrontendApi.GetSettingsFlow(context.Background()).Id(pr.ID.String()).Execute() + _, _, err := testhelpers.NewSDKCustomClient(publicTS, primaryUser).FrontendAPI.GetSettingsFlow(context.Background()).Id(pr.ID.String()).Execute() require.Error(t, err) require.IsTypef(t, new(kratos.GenericOpenAPIError), err, "%T", err) @@ -413,7 +413,7 @@ func TestHandler(t *testing.T) { rid := res.Request.URL.Query().Get("flow") require.NotEmpty(t, rid) - _, _, err = testhelpers.NewSDKCustomClient(publicTS, otherUser).FrontendApi.GetSettingsFlow(context.Background()).Id(rid).Execute() + _, _, err = testhelpers.NewSDKCustomClient(publicTS, otherUser).FrontendAPI.GetSettingsFlow(context.Background()).Id(rid).Execute() require.Error(t, err) require.IsTypef(t, new(kratos.GenericOpenAPIError), err, "%T", err) assert.Equal(t, int64(http.StatusForbidden), gjson.GetBytes(err.(*kratos.GenericOpenAPIError).Body(), "error.code").Int(), "should return a 403 error because the identities from the cookies do not match") diff --git a/selfservice/flow/verification/error_test.go b/selfservice/flow/verification/error_test.go index 86f4d2e1e32a..7359f8c81e1d 100644 --- a/selfservice/flow/verification/error_test.go +++ b/selfservice/flow/verification/error_test.go @@ -87,7 +87,7 @@ func TestHandleError(t *testing.T) { defer res.Body.Close() require.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowErrorURL(ctx).String()+"?id=") - sse, _, err := sdk.FrontendApi.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() + sse, _, err := sdk.FrontendAPI.GetFlowError(context.Background()).Id(res.Request.URL.Query().Get("id")).Execute() require.NoError(t, err) return sse.Error, nil diff --git a/selfservice/strategy/code/strategy_login_test.go b/selfservice/strategy/code/strategy_login_test.go index ea30e7256c34..880d64f5971c 100644 --- a/selfservice/strategy/code/strategy_login_test.go +++ b/selfservice/strategy/code/strategy_login_test.go @@ -157,7 +157,7 @@ func TestLoginCodeStrategy(t *testing.T) { submitLogin := func(ctx context.Context, t *testing.T, s *state, apiType ApiType, vals func(v *url.Values), mustHaveSession bool, submitAssertion onSubmitAssertion) *state { t.Helper() - lf, resp, err := testhelpers.NewSDKCustomClient(s.testServer, s.client).FrontendApi.GetLoginFlow(ctx).Id(s.flowID).Execute() + lf, resp, err := testhelpers.NewSDKCustomClient(s.testServer, s.client).FrontendAPI.GetLoginFlow(ctx).Id(s.flowID).Execute() require.NoError(t, err) require.EqualValues(t, http.StatusOK, resp.StatusCode) @@ -370,7 +370,7 @@ func TestLoginCodeStrategy(t *testing.T) { if tc.apiType == ApiTypeBrowser { require.EqualValues(t, http.StatusOK, resp.StatusCode) require.EqualValues(t, conf.SelfServiceFlowLoginUI(ctx).Path, resp.Request.URL.Path) - lf, resp, err := testhelpers.NewSDKCustomClient(public, s.client).FrontendApi.GetLoginFlow(ctx).Id(s.flowID).Execute() + lf, resp, err := testhelpers.NewSDKCustomClient(public, s.client).FrontendAPI.GetLoginFlow(ctx).Id(s.flowID).Execute() require.NoError(t, err) require.EqualValues(t, http.StatusOK, resp.StatusCode) body, err := json.Marshal(lf) @@ -394,7 +394,7 @@ func TestLoginCodeStrategy(t *testing.T) { require.EqualValues(t, http.StatusOK, resp.StatusCode) require.EqualValues(t, conf.SelfServiceFlowLoginUI(ctx).Path, resp.Request.URL.Path) - lf, resp, err := testhelpers.NewSDKCustomClient(public, s.client).FrontendApi.GetLoginFlow(ctx).Id(s.flowID).Execute() + lf, resp, err := testhelpers.NewSDKCustomClient(public, s.client).FrontendAPI.GetLoginFlow(ctx).Id(s.flowID).Execute() require.NoError(t, err) require.EqualValues(t, http.StatusOK, resp.StatusCode) body, err := json.Marshal(lf) @@ -480,7 +480,7 @@ func TestLoginCodeStrategy(t *testing.T) { // with browser clients we redirect back to the UI with a new flow id as a query parameter require.Equal(t, http.StatusOK, resp.StatusCode) require.Equal(t, conf.SelfServiceFlowLoginUI(ctx).Path, resp.Request.URL.Path) - lf, _, err := testhelpers.NewSDKCustomClient(public, s.client).FrontendApi.GetLoginFlow(ctx).Id(resp.Request.URL.Query().Get("flow")).Execute() + lf, _, err := testhelpers.NewSDKCustomClient(public, s.client).FrontendAPI.GetLoginFlow(ctx).Id(resp.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err) require.EqualValues(t, http.StatusOK, resp.StatusCode) diff --git a/selfservice/strategy/code/strategy_recovery_admin_test.go b/selfservice/strategy/code/strategy_recovery_admin_test.go index 882831b06b14..9a940ff8e31b 100644 --- a/selfservice/strategy/code/strategy_recovery_admin_test.go +++ b/selfservice/strategy/code/strategy_recovery_admin_test.go @@ -50,7 +50,7 @@ func TestAdminStrategy(t *testing.T) { type createCodeParams = kratos.CreateRecoveryCodeForIdentityBody createCode := func(params createCodeParams) (*kratos.RecoveryCodeForIdentity, *http.Response, error) { - return adminSDK.IdentityApi. + return adminSDK.IdentityAPI. CreateRecoveryCodeForIdentity(context.Background()). CreateRecoveryCodeForIdentityBody(params).Execute() } diff --git a/selfservice/strategy/code/strategy_recovery_test.go b/selfservice/strategy/code/strategy_recovery_test.go index c5016b28710b..2652ca1823c5 100644 --- a/selfservice/strategy/code/strategy_recovery_test.go +++ b/selfservice/strategy/code/strategy_recovery_test.go @@ -724,7 +724,7 @@ func TestRecovery(t *testing.T) { rs, res, err := testhelpers. NewSDKCustomClient(public, c). - FrontendApi.GetRecoveryFlow(context.Background()). + FrontendAPI.GetRecoveryFlow(context.Background()). Id(flowId). Execute() @@ -1571,7 +1571,7 @@ func TestRecovery_WithContinueWith(t *testing.T) { rs, res, err := testhelpers. NewSDKCustomClient(public, c). - FrontendApi.GetRecoveryFlow(context.Background()). + FrontendAPI.GetRecoveryFlow(context.Background()). Id(flowId). Execute() @@ -1972,7 +1972,7 @@ func TestDisabledStrategy(t *testing.T) { require.NoError(t, reg.IdentityManager().Create(context.Background(), &id, identity.ManagerAllowWriteProtectedTraits)) - rl, _, err := adminSDK.IdentityApi. + rl, _, err := adminSDK.IdentityAPI. CreateRecoveryLinkForIdentity(context.Background()). CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{IdentityId: id.ID.String()}). Execute() diff --git a/selfservice/strategy/code/strategy_registration_test.go b/selfservice/strategy/code/strategy_registration_test.go index 0b6caaa15da1..ecef2a41ace8 100644 --- a/selfservice/strategy/code/strategy_registration_test.go +++ b/selfservice/strategy/code/strategy_registration_test.go @@ -165,7 +165,7 @@ func TestRegistrationCodeStrategy(t *testing.T) { s.email = testhelpers.RandomEmail() } - rf, resp, err := testhelpers.NewSDKCustomClient(s.testServer, s.client).FrontendApi.GetRegistrationFlow(context.Background()).Id(s.flowID).Execute() + rf, resp, err := testhelpers.NewSDKCustomClient(s.testServer, s.client).FrontendAPI.GetRegistrationFlow(context.Background()).Id(s.flowID).Execute() require.NoError(t, err) require.EqualValues(t, http.StatusOK, resp.StatusCode) @@ -203,7 +203,7 @@ func TestRegistrationCodeStrategy(t *testing.T) { submitOTP := func(ctx context.Context, t *testing.T, reg *driver.RegistryDefault, s *state, vals func(v *url.Values), apiType ApiType, submitAssertion onSubmitAssertion) *state { t.Helper() - rf, resp, err := testhelpers.NewSDKCustomClient(s.testServer, s.client).FrontendApi.GetRegistrationFlow(context.Background()).Id(s.flowID).Execute() + rf, resp, err := testhelpers.NewSDKCustomClient(s.testServer, s.client).FrontendAPI.GetRegistrationFlow(context.Background()).Id(s.flowID).Execute() require.NoError(t, err) require.EqualValues(t, http.StatusOK, resp.StatusCode) @@ -540,7 +540,7 @@ func TestRegistrationCodeStrategy(t *testing.T) { // we expect a redirect to the registration page with the flow id require.Equal(t, http.StatusOK, resp.StatusCode) require.Equal(t, conf.SelfServiceFlowRegistrationUI(ctx).Path, resp.Request.URL.Path) - rf, resp, err := testhelpers.NewSDKCustomClient(public, s.client).FrontendApi.GetRegistrationFlow(ctx).Id(resp.Request.URL.Query().Get("flow")).Execute() + rf, resp, err := testhelpers.NewSDKCustomClient(public, s.client).FrontendAPI.GetRegistrationFlow(ctx).Id(resp.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err) require.Equal(t, http.StatusOK, resp.StatusCode) body, err := json.Marshal(rf) diff --git a/selfservice/strategy/link/strategy_recovery_test.go b/selfservice/strategy/link/strategy_recovery_test.go index 6b9240a4325b..6ff7ecb196a3 100644 --- a/selfservice/strategy/link/strategy_recovery_test.go +++ b/selfservice/strategy/link/strategy_recovery_test.go @@ -99,7 +99,7 @@ func TestAdminStrategy(t *testing.T) { }) t.Run("description=should not be able to recover an account that does not exist", func(t *testing.T) { - _, _, err := adminSDK.IdentityApi.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ + _, _, err := adminSDK.IdentityAPI.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ IdentityId: x.NewUUID().String(), }).Execute() require.IsType(t, err, new(kratos.GenericOpenAPIError), "%T", err) @@ -112,7 +112,7 @@ func TestAdminStrategy(t *testing.T) { require.NoError(t, reg.IdentityManager().Create(context.Background(), &id, identity.ManagerAllowWriteProtectedTraits)) - rl, _, err := adminSDK.IdentityApi.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ + rl, _, err := adminSDK.IdentityAPI.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ IdentityId: id.ID.String(), ExpiresIn: pointerx.Ptr("100ms"), }).Execute() @@ -136,7 +136,7 @@ func TestAdminStrategy(t *testing.T) { require.NoError(t, reg.IdentityManager().Create(context.Background(), &id, identity.ManagerAllowWriteProtectedTraits)) - rl, _, err := adminSDK.IdentityApi.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ + rl, _, err := adminSDK.IdentityAPI.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ IdentityId: id.ID.String(), ExpiresIn: pointerx.Ptr("100ms"), }).Execute() @@ -166,7 +166,7 @@ func TestAdminStrategy(t *testing.T) { require.NoError(t, reg.IdentityManager().Create(context.Background(), &id, identity.ManagerAllowWriteProtectedTraits)) - rl, _, err := adminSDK.IdentityApi.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ + rl, _, err := adminSDK.IdentityAPI.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ IdentityId: id.ID.String(), }).Execute() require.NoError(t, err) @@ -196,7 +196,7 @@ func TestAdminStrategy(t *testing.T) { email := strings.ToLower(testhelpers.RandomEmail()) id := createIdentityToRecover(t, reg, email) - rl1, _, err := adminSDK.IdentityApi. + rl1, _, err := adminSDK.IdentityAPI. CreateRecoveryLinkForIdentity(context.Background()). CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ IdentityId: id.ID.String(), @@ -206,7 +206,7 @@ func TestAdminStrategy(t *testing.T) { checkLink(t, rl1, time.Now().Add(conf.SelfServiceFlowRecoveryRequestLifespan(ctx)+time.Second)) - rl2, _, err := adminSDK.IdentityApi. + rl2, _, err := adminSDK.IdentityAPI. CreateRecoveryLinkForIdentity(context.Background()). CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ IdentityId: id.ID.String(), @@ -738,7 +738,7 @@ func TestRecovery(t *testing.T) { assert.Equal(t, http.StatusOK, res.StatusCode) assert.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowRecoveryUI(ctx).String()+"?flow=") - rs, _, err := testhelpers.NewSDKCustomClient(public, c).FrontendApi.GetRecoveryFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() + rs, _, err := testhelpers.NewSDKCustomClient(public, c).FrontendAPI.GetRecoveryFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err) require.Len(t, rs.Ui.Messages, 1) @@ -798,7 +798,7 @@ func TestRecovery(t *testing.T) { assert.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowRecoveryUI(ctx).String()) assert.NotContains(t, res.Request.URL.String(), gjson.Get(body, "id").String()) - rs, _, err := testhelpers.NewSDKCustomClient(public, c).FrontendApi.GetRecoveryFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() + rs, _, err := testhelpers.NewSDKCustomClient(public, c).FrontendAPI.GetRecoveryFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err) require.Len(t, rs.Ui.Messages, 1) @@ -896,7 +896,7 @@ func TestDisabledEndpoint(t *testing.T) { require.NoError(t, reg.IdentityManager().Create(context.Background(), &id, identity.ManagerAllowWriteProtectedTraits)) - rl, _, err := adminSDK.IdentityApi.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ + rl, _, err := adminSDK.IdentityAPI.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(kratos.CreateRecoveryLinkForIdentityBody{ IdentityId: id.ID.String(), }).Execute() assert.Nil(t, rl) diff --git a/selfservice/strategy/link/strategy_verification_test.go b/selfservice/strategy/link/strategy_verification_test.go index 84ee51ae9dd1..b2fd7c0f405a 100644 --- a/selfservice/strategy/link/strategy_verification_test.go +++ b/selfservice/strategy/link/strategy_verification_test.go @@ -211,7 +211,7 @@ func TestVerification(t *testing.T) { assert.Equal(t, http.StatusOK, res.StatusCode) assert.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowVerificationUI(ctx).String()+"?flow=") - sr, _, err := testhelpers.NewSDKCustomClient(public, c).FrontendApi.GetVerificationFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() + sr, _, err := testhelpers.NewSDKCustomClient(public, c).FrontendAPI.GetVerificationFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err) require.Len(t, sr.Ui.Messages, 1) @@ -263,7 +263,7 @@ func TestVerification(t *testing.T) { assert.Contains(t, res.Request.URL.String(), conf.SelfServiceFlowVerificationUI(ctx).String()) assert.NotContains(t, res.Request.URL.String(), gjson.Get(body, "id").String()) - sr, _, err := testhelpers.NewSDKCustomClient(public, c).FrontendApi.GetVerificationFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() + sr, _, err := testhelpers.NewSDKCustomClient(public, c).FrontendAPI.GetVerificationFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err) require.Len(t, sr.Ui.Messages, 1) diff --git a/selfservice/strategy/oidc/strategy_settings_test.go b/selfservice/strategy/oidc/strategy_settings_test.go index 65e5ab30600c..af9d7cf8be75 100644 --- a/selfservice/strategy/oidc/strategy_settings_test.go +++ b/selfservice/strategy/oidc/strategy_settings_test.go @@ -187,7 +187,7 @@ func TestSettingsStrategy(t *testing.T) { t.Run("case=should not be able to fetch another user's data", func(t *testing.T) { req := newProfileFlow(t, agents["password"], "", time.Hour) - _, _, err := testhelpers.NewSDKCustomClient(publicTS, agents["oryer"]).FrontendApi.GetSettingsFlow(context.Background()).Id(req.ID.String()).Execute() + _, _, err := testhelpers.NewSDKCustomClient(publicTS, agents["oryer"]).FrontendAPI.GetSettingsFlow(context.Background()).Id(req.ID.String()).Execute() require.Error(t, err) assert.Contains(t, err.Error(), "403") }) @@ -195,7 +195,7 @@ func TestSettingsStrategy(t *testing.T) { t.Run("case=should fetch the settings request and expect data to be set appropriately", func(t *testing.T) { req := newProfileFlow(t, agents["password"], "", time.Hour) - rs, _, err := testhelpers.NewSDKCustomClient(publicTS, agents["password"]).FrontendApi.GetSettingsFlow(context.Background()).Id(req.ID.String()).Execute() + rs, _, err := testhelpers.NewSDKCustomClient(publicTS, agents["password"]).FrontendAPI.GetSettingsFlow(context.Background()).Id(req.ID.String()).Execute() require.NoError(t, err) // Check our sanity. Does the SDK relay the same info that we expect and got from the store? @@ -334,7 +334,7 @@ func TestSettingsStrategy(t *testing.T) { _, res, req := unlink(t, agent, provider) assert.Contains(t, res.Request.URL.String(), uiTS.URL+"/login") - fa := testhelpers.NewSDKCustomClient(publicTS, agents[agent]).FrontendApi + fa := testhelpers.NewSDKCustomClient(publicTS, agents[agent]).FrontendAPI lf, _, err := fa.GetLoginFlow(context.Background()).Id(res.Request.URL.Query()["flow"][0]).Execute() require.NoError(t, err) @@ -460,7 +460,7 @@ func TestSettingsStrategy(t *testing.T) { updatedFlow, res, originalFlow := link(t, agent, provider) assert.Contains(t, res.Request.URL.String(), uiTS.URL) - updatedFlowSDK, _, err := testhelpers.NewSDKCustomClient(publicTS, agents[agent]).FrontendApi.GetSettingsFlow(context.Background()).Id(originalFlow.Id).Execute() + updatedFlowSDK, _, err := testhelpers.NewSDKCustomClient(publicTS, agents[agent]).FrontendAPI.GetSettingsFlow(context.Background()).Id(originalFlow.Id).Execute() require.NoError(t, err) require.EqualValues(t, flow.StateSuccess, updatedFlowSDK.State) @@ -487,7 +487,7 @@ func TestSettingsStrategy(t *testing.T) { _, res, req := link(t, agent, provider) assert.Contains(t, res.Request.URL.String(), uiTS.URL) - rs, _, err := testhelpers.NewSDKCustomClient(publicTS, agents[agent]).FrontendApi.GetSettingsFlow(context.Background()).Id(req.Id).Execute() + rs, _, err := testhelpers.NewSDKCustomClient(publicTS, agents[agent]).FrontendAPI.GetSettingsFlow(context.Background()).Id(req.Id).Execute() require.NoError(t, err) require.EqualValues(t, flow.StateSuccess, rs.State) @@ -571,7 +571,7 @@ func TestSettingsStrategy(t *testing.T) { _, res, req := link(t, agent, provider) assert.Contains(t, res.Request.URL.String(), uiTS.URL+"/login") - fa := testhelpers.NewSDKCustomClient(publicTS, agents[agent]).FrontendApi + fa := testhelpers.NewSDKCustomClient(publicTS, agents[agent]).FrontendAPI lf, _, err := fa.GetLoginFlow(context.Background()).Id(res.Request.URL.Query()["flow"][0]).Execute() require.NoError(t, err) diff --git a/selfservice/strategy/profile/strategy_test.go b/selfservice/strategy/profile/strategy_test.go index fa5b1652a130..996ac08796fb 100644 --- a/selfservice/strategy/profile/strategy_test.go +++ b/selfservice/strategy/profile/strategy_test.go @@ -205,13 +205,13 @@ func TestStrategyTraits(t *testing.T) { } t.Run("type=api", func(t *testing.T) { - pr, _, err := testhelpers.NewSDKCustomClient(publicTS, apiUser1).FrontendApi.CreateNativeSettingsFlow(context.Background()).Execute() + pr, _, err := testhelpers.NewSDKCustomClient(publicTS, apiUser1).FrontendAPI.CreateNativeSettingsFlow(context.Background()).Execute() require.NoError(t, err) run(t, apiIdentity1, pr, settings.RouteInitAPIFlow) }) t.Run("type=spa", func(t *testing.T) { - pr, _, err := testhelpers.NewSDKCustomClient(publicTS, browserUser1).FrontendApi.CreateBrowserSettingsFlow(context.Background()).Execute() + pr, _, err := testhelpers.NewSDKCustomClient(publicTS, browserUser1).FrontendAPI.CreateBrowserSettingsFlow(context.Background()).Execute() require.NoError(t, err) run(t, browserIdentity1, pr, settings.RouteInitBrowserFlow) }) @@ -224,7 +224,7 @@ func TestStrategyTraits(t *testing.T) { rid := res.Request.URL.Query().Get("flow") require.NotEmpty(t, rid) - pr, _, err := testhelpers.NewSDKCustomClient(publicTS, browserUser1).FrontendApi.GetSettingsFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() + pr, _, err := testhelpers.NewSDKCustomClient(publicTS, browserUser1).FrontendAPI.GetSettingsFlow(context.Background()).Id(res.Request.URL.Query().Get("flow")).Execute() require.NoError(t, err, "%s", rid) run(t, browserIdentity1, pr, settings.RouteInitBrowserFlow)