From 789aca7a7f5b28758855e1999887a5ba67d3b354 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:40:27 +0000 Subject: [PATCH] autogen: regenerate OpenAPI client for v1.1.0 Version: v1.1.0 --- .openapi-generator/FILES | 38 +- .openapi-generator/VERSION | 2 +- README.md | 7 + api/openapi.yaml | 2866 +++++++++++------ api_courier.go | 95 +- api_frontend.go | 1441 +++++---- api_identity.go | 872 +++-- api_metadata.go | 97 +- client.go | 225 +- configuration.go | 18 +- docs/ConsistencyRequestParameters.md | 56 + docs/ContinueWith.md | 12 +- docs/ContinueWithRecoveryUi.md | 72 + docs/ContinueWithRecoveryUiFlow.md | 77 + docs/ContinueWithSetOrySessionToken.md | 2 +- docs/ContinueWithSettingsUi.md | 72 + docs/ContinueWithSettingsUiFlow.md | 51 + docs/ContinueWithVerificationUi.md | 2 +- docs/{CourierApi.md => CourierAPI.md} | 22 +- docs/CreateIdentityBody.md | 8 +- docs/{FrontendApi.md => FrontendAPI.md} | 332 +- docs/Identity.md | 44 +- docs/{IdentityApi.md => IdentityAPI.md} | 236 +- docs/IdentityCredentials.md | 8 +- docs/IdentityCredentialsCode.md | 92 + docs/IdentityCredentialsOidcProvider.md | 26 + docs/IdentityCredentialsType.md | 19 - docs/IdentityWithCredentialsPasswordConfig.md | 2 +- docs/LoginFlow.md | 77 +- docs/{IdentityState.md => LoginFlowState.md} | 8 +- docs/Message.md | 28 +- docs/{MetadataApi.md => MetadataAPI.md} | 32 +- docs/OAuth2Client.md | 82 +- docs/Pagination.md | 82 - docs/RecoveryCodeForIdentity.md | 2 +- docs/RecoveryFlow.md | 46 +- docs/RegistrationFlow.md | 77 +- docs/RegistrationFlowState.md | 15 + docs/Session.md | 35 +- docs/SessionAuthenticationMethod.md | 26 + docs/SettingsFlow.md | 20 +- docs/UiNodeAttributes.md | 8 +- docs/UpdateIdentityBody.md | 10 +- docs/UpdateLoginFlowBody.md | 117 +- docs/UpdateLoginFlowWithCodeMethod.md | 150 + docs/UpdateLoginFlowWithOidcMethod.md | 52 + docs/UpdateRegistrationFlowBody.md | 108 +- docs/UpdateRegistrationFlowWithCodeMethod.md | 176 + docs/UpdateRegistrationFlowWithOidcMethod.md | 52 + docs/VerifiableIdentityAddress.md | 2 +- docs/VerificationFlow.md | 20 +- go.mod | 9 +- go.sum | 1567 +-------- model_authenticator_assurance_level.go | 2 +- model_batch_patch_identities_response.go | 31 +- model_consistency_request_parameters.go | 157 + model_continue_with.go | 66 +- model_continue_with_recovery_ui.go | 199 ++ model_continue_with_recovery_ui_flow.go | 208 ++ model_continue_with_set_ory_session_token.go | 56 +- model_continue_with_settings_ui.go | 199 ++ model_continue_with_settings_ui_flow.go | 170 + model_continue_with_verification_ui.go | 56 +- model_continue_with_verification_ui_flow.go | 62 +- model_courier_message_status.go | 2 +- model_courier_message_type.go | 2 +- model_create_identity_body.go | 109 +- ..._create_recovery_code_for_identity_body.go | 57 +- ..._create_recovery_link_for_identity_body.go | 57 +- model_delete_my_sessions_count.go | 31 +- ...enticator_assurance_level_not_satisfied.go | 39 +- ..._error_browser_location_change_required.go | 39 +- model_error_flow_replaced.go | 39 +- model_error_generic.go | 49 +- model_flow_error.go | 75 +- model_generic_error.go | 107 +- model_get_version_200_response.go | 49 +- model_health_not_ready_status.go | 31 +- model_health_status.go | 31 +- model_identity.go | 186 +- model_identity_credentials.go | 86 +- model_identity_credentials_code.go | 205 ++ model_identity_credentials_oidc.go | 31 +- model_identity_credentials_oidc_provider.go | 100 +- model_identity_credentials_password.go | 31 +- model_identity_credentials_type.go | 118 - model_identity_patch.go | 39 +- model_identity_patch_response.go | 47 +- model_identity_schema_container.go | 41 +- model_identity_state.go | 112 - model_identity_with_credentials.go | 39 +- model_identity_with_credentials_oidc.go | 31 +- ...l_identity_with_credentials_oidc_config.go | 39 +- ...y_with_credentials_oidc_config_provider.go | 54 +- model_identity_with_credentials_password.go | 31 +- ...entity_with_credentials_password_config.go | 41 +- model_is_alive_200_response.go | 49 +- model_is_ready_503_response.go | 49 +- model_json_patch.go | 66 +- model_login_flow.go | 240 +- model_login_flow_state.go | 114 + model_logout_flow.go | 54 +- model_message.go | 139 +- model_message_dispatch.go | 79 +- model_needs_privileged_session_error.go | 57 +- model_o_auth2_client.go | 493 +-- ...consent_request_open_id_connect_context.go | 65 +- model_o_auth2_login_request.go | 95 +- model_pagination.go | 188 -- model_patch_identities_body.go | 31 +- model_perform_native_logout_body.go | 49 +- model_recovery_code_for_identity.go | 64 +- model_recovery_flow.go | 146 +- model_recovery_flow_state.go | 2 +- model_recovery_identity_address.go | 75 +- model_recovery_link_for_identity.go | 57 +- model_registration_flow.go | 218 +- model_registration_flow_state.go | 114 + model_self_service_flow_expired_error.go | 55 +- model_session.go | 176 +- model_session_authentication_method.go | 93 +- model_session_device.go | 73 +- model_settings_flow.go | 123 +- model_settings_flow_state.go | 2 +- model_successful_code_exchange_response.go | 57 +- model_successful_native_login.go | 57 +- model_successful_native_registration.go | 73 +- model_token_pagination.go | 39 +- model_token_pagination_headers.go | 39 +- model_ui_container.go | 67 +- model_ui_node.go | 69 +- model_ui_node_anchor_attributes.go | 64 +- model_ui_node_attributes.go | 6 +- model_ui_node_image_attributes.go | 69 +- model_ui_node_input_attributes.go | 108 +- model_ui_node_meta.go | 31 +- model_ui_node_script_attributes.go | 89 +- model_ui_node_text_attributes.go | 59 +- model_ui_text.go | 69 +- model_update_identity_body.go | 90 +- model_update_login_flow_body.go | 36 +- model_update_login_flow_with_code_method.go | 314 ++ ...te_login_flow_with_lookup_secret_method.go | 62 +- model_update_login_flow_with_oidc_method.go | 154 +- ..._update_login_flow_with_password_method.go | 75 +- model_update_login_flow_with_totp_method.go | 62 +- ...update_login_flow_with_web_authn_method.go | 70 +- model_update_recovery_flow_body.go | 6 +- ...l_update_recovery_flow_with_code_method.go | 73 +- ...l_update_recovery_flow_with_link_method.go | 62 +- model_update_registration_flow_body.go | 36 +- ...date_registration_flow_with_code_method.go | 352 ++ ...date_registration_flow_with_oidc_method.go | 164 +- ..._registration_flow_with_password_method.go | 79 +- ...registration_flow_with_web_authn_method.go | 90 +- model_update_settings_flow_body.go | 6 +- ...update_settings_flow_with_lookup_method.go | 89 +- ...l_update_settings_flow_with_oidc_method.go | 93 +- ...date_settings_flow_with_password_method.go | 62 +- ...pdate_settings_flow_with_profile_method.go | 64 +- ...l_update_settings_flow_with_totp_method.go | 73 +- ...ate_settings_flow_with_web_authn_method.go | 81 +- model_update_verification_flow_body.go | 6 +- ...date_verification_flow_with_code_method.go | 73 +- ...date_verification_flow_with_link_method.go | 62 +- model_verifiable_identity_address.go | 98 +- model_verification_flow.go | 119 +- model_verification_flow_state.go | 2 +- model_version.go | 31 +- response.go | 2 +- test/api_courier_test.go | 51 + test/api_frontend_test.go | 384 +++ test/api_identity_test.go | 260 ++ test/api_metadata_test.go | 61 + utils.go | 21 +- 175 files changed, 13467 insertions(+), 6507 deletions(-) create mode 100644 docs/ConsistencyRequestParameters.md create mode 100644 docs/ContinueWithRecoveryUi.md create mode 100644 docs/ContinueWithRecoveryUiFlow.md create mode 100644 docs/ContinueWithSettingsUi.md create mode 100644 docs/ContinueWithSettingsUiFlow.md rename docs/{CourierApi.md => CourierAPI.md} (88%) rename docs/{FrontendApi.md => FrontendAPI.md} (83%) rename docs/{IdentityApi.md => IdentityAPI.md} (61%) create mode 100644 docs/IdentityCredentialsCode.md delete mode 100644 docs/IdentityCredentialsType.md rename docs/{IdentityState.md => LoginFlowState.md} (53%) rename docs/{MetadataApi.md => MetadataAPI.md} (78%) delete mode 100644 docs/Pagination.md create mode 100644 docs/RegistrationFlowState.md create mode 100644 docs/UpdateLoginFlowWithCodeMethod.md create mode 100644 docs/UpdateRegistrationFlowWithCodeMethod.md create mode 100644 model_consistency_request_parameters.go create mode 100644 model_continue_with_recovery_ui.go create mode 100644 model_continue_with_recovery_ui_flow.go create mode 100644 model_continue_with_settings_ui.go create mode 100644 model_continue_with_settings_ui_flow.go create mode 100644 model_identity_credentials_code.go delete mode 100644 model_identity_credentials_type.go delete mode 100644 model_identity_state.go create mode 100644 model_login_flow_state.go delete mode 100644 model_pagination.go create mode 100644 model_registration_flow_state.go create mode 100644 model_update_login_flow_with_code_method.go create mode 100644 model_update_registration_flow_with_code_method.go create mode 100644 test/api_courier_test.go create mode 100644 test/api_frontend_test.go create mode 100644 test/api_identity_test.go create mode 100644 test/api_metadata_test.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index cdbbd84..6a21f00 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -11,11 +11,16 @@ client.go configuration.go docs/AuthenticatorAssuranceLevel.md docs/BatchPatchIdentitiesResponse.md +docs/ConsistencyRequestParameters.md docs/ContinueWith.md +docs/ContinueWithRecoveryUi.md +docs/ContinueWithRecoveryUiFlow.md docs/ContinueWithSetOrySessionToken.md +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 @@ -27,22 +32,21 @@ 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 docs/IdentityCredentialsOidcProvider.md docs/IdentityCredentialsPassword.md -docs/IdentityCredentialsType.md docs/IdentityPatch.md docs/IdentityPatchResponse.md docs/IdentitySchemaContainer.md -docs/IdentityState.md docs/IdentityWithCredentials.md docs/IdentityWithCredentialsOidc.md docs/IdentityWithCredentialsOidcConfig.md @@ -53,15 +57,15 @@ docs/IsAlive200Response.md docs/IsReady503Response.md docs/JsonPatch.md docs/LoginFlow.md +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 docs/OAuth2LoginRequest.md -docs/Pagination.md docs/PatchIdentitiesBody.md docs/PerformNativeLogoutBody.md docs/RecoveryCodeForIdentity.md @@ -70,6 +74,7 @@ docs/RecoveryFlowState.md docs/RecoveryIdentityAddress.md docs/RecoveryLinkForIdentity.md docs/RegistrationFlow.md +docs/RegistrationFlowState.md docs/SelfServiceFlowExpiredError.md docs/Session.md docs/SessionAuthenticationMethod.md @@ -93,6 +98,7 @@ docs/UiNodeTextAttributes.md docs/UiText.md docs/UpdateIdentityBody.md docs/UpdateLoginFlowBody.md +docs/UpdateLoginFlowWithCodeMethod.md docs/UpdateLoginFlowWithLookupSecretMethod.md docs/UpdateLoginFlowWithOidcMethod.md docs/UpdateLoginFlowWithPasswordMethod.md @@ -102,6 +108,7 @@ docs/UpdateRecoveryFlowBody.md docs/UpdateRecoveryFlowWithCodeMethod.md docs/UpdateRecoveryFlowWithLinkMethod.md docs/UpdateRegistrationFlowBody.md +docs/UpdateRegistrationFlowWithCodeMethod.md docs/UpdateRegistrationFlowWithOidcMethod.md docs/UpdateRegistrationFlowWithPasswordMethod.md docs/UpdateRegistrationFlowWithWebAuthnMethod.md @@ -124,8 +131,13 @@ go.mod go.sum model_authenticator_assurance_level.go model_batch_patch_identities_response.go +model_consistency_request_parameters.go model_continue_with.go +model_continue_with_recovery_ui.go +model_continue_with_recovery_ui_flow.go model_continue_with_set_ory_session_token.go +model_continue_with_settings_ui.go +model_continue_with_settings_ui_flow.go model_continue_with_verification_ui.go model_continue_with_verification_ui_flow.go model_courier_message_status.go @@ -145,14 +157,13 @@ model_health_not_ready_status.go model_health_status.go model_identity.go model_identity_credentials.go +model_identity_credentials_code.go model_identity_credentials_oidc.go model_identity_credentials_oidc_provider.go model_identity_credentials_password.go -model_identity_credentials_type.go model_identity_patch.go model_identity_patch_response.go model_identity_schema_container.go -model_identity_state.go model_identity_with_credentials.go model_identity_with_credentials_oidc.go model_identity_with_credentials_oidc_config.go @@ -163,6 +174,7 @@ model_is_alive_200_response.go model_is_ready_503_response.go model_json_patch.go model_login_flow.go +model_login_flow_state.go model_logout_flow.go model_message.go model_message_dispatch.go @@ -170,7 +182,6 @@ model_needs_privileged_session_error.go model_o_auth2_client.go model_o_auth2_consent_request_open_id_connect_context.go model_o_auth2_login_request.go -model_pagination.go model_patch_identities_body.go model_perform_native_logout_body.go model_recovery_code_for_identity.go @@ -179,6 +190,7 @@ model_recovery_flow_state.go model_recovery_identity_address.go model_recovery_link_for_identity.go model_registration_flow.go +model_registration_flow_state.go model_self_service_flow_expired_error.go model_session.go model_session_authentication_method.go @@ -202,6 +214,7 @@ model_ui_node_text_attributes.go model_ui_text.go model_update_identity_body.go model_update_login_flow_body.go +model_update_login_flow_with_code_method.go model_update_login_flow_with_lookup_secret_method.go model_update_login_flow_with_oidc_method.go model_update_login_flow_with_password_method.go @@ -211,6 +224,7 @@ model_update_recovery_flow_body.go model_update_recovery_flow_with_code_method.go model_update_recovery_flow_with_link_method.go model_update_registration_flow_body.go +model_update_registration_flow_with_code_method.go model_update_registration_flow_with_oidc_method.go model_update_registration_flow_with_password_method.go model_update_registration_flow_with_web_authn_method.go @@ -229,4 +243,8 @@ model_verification_flow.go model_verification_flow_state.go model_version.go response.go +test/api_courier_test.go +test/api_frontend_test.go +test/api_identity_test.go +test/api_metadata_test.go utils.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 6d54bbd..3769235 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.1 \ No newline at end of file +7.1.0 \ No newline at end of file diff --git a/README.md b/README.md index 3986d9a..0958536 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,13 @@ This is the official Ory Kratos SDK for go. +## Ory Self-Hosted + +This SDK is for use with self-hosted Ory Kratos. +If you are developing against Ory Network, please use the [Ory Network SDK](https://www.ory.sh/docs/sdk). + + + Please do not make any pull requests against this repository! Its contents are fully auto-generated by the [ory/sdk](http://github.com/ory/sdk) repository. Any changes to this repository will be overwritten on the next CI run! diff --git a/api/openapi.yaml b/api/openapi.yaml index 8f7a798..099cc56 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -2,14 +2,12 @@ openapi: 3.0.3 info: contact: email: office@ory.sh - description: "This is the API specification for Ory Identities with features such\ - \ as registration, login, recovery, account verification, profile settings, password\ - \ reset, identity management, session management, email and sms delivery, and\ - \ more.\n" + description: | + This is the API specification for Ory Identities with features such as registration, login, recovery, account verification, profile settings, password reset, identity management, session management, email and sms delivery, and more. license: name: Apache 2.0 title: Ory Identities API - version: v1.0.0 + version: v1.1.0 servers: - url: / tags: @@ -26,13 +24,16 @@ tags: paths: /.well-known/ory/webauthn.js: get: - description: "This endpoint provides JavaScript which is needed in order to\ - \ perform WebAuthn login and registration.\n\nIf you are building a JavaScript\ - \ Browser App (e.g. in ReactJS or AngularJS) you will need to load this file:\n\ - \n```html\n